mobile-website

View full website, not mobile version on iPhone

淺唱寂寞╮ 提交于 2019-11-30 21:03:06
I have a script that detects whether you're an iPhone user or not and redirects to a more iPhone friendly page. <script type="text/javascript"> if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { location.replace("http://domain.com/iphone/"); } </script> This works great but has one problem. It is convention to offer the user the ability to view the full web page. However, if I link to the root, obviously the redirect is going to send them to the mobile version! Any ideas on how to include if click on the link from /iphone/ , they can go to / and stay there.

Detecting Requests from Mobile Browsers in ASP.NET [duplicate]

你离开我真会死。 提交于 2019-11-30 14:29:53
This question already has an answer here: Mobile Device Detection in asp.net 8 answers I have an existing web site and I would like to create a mobile version of it that is more suitable. For instance, the main site uses drop-down menus and we all know those are quite the fail on mobile devices. I would like to redirect to my mobile version (it will be a subdomain of the current site) if I detect a request from a mobile browser. So when they Google something and come to my site, they will automatically see the mobile version (just like Wikipedia). Does ASP.NET provide an easy way of doing this

Detect mobile devices with Django and Python 3

允我心安 提交于 2019-11-30 12:44:26
I am struggling to find an easy way to detect if the request comes from a mobile device in my Django views. I am trying to implement something like this: #views.py def myfunction(request): ... if request.mobile: is_mobile = True else: is_mobile = False context = { ... , 'is_mobile': is_mobile, } return render(request, 'mytemplate.html', context) And in mytemplate.html : {% if is_mobile %} show something {% else %} show something else {% endif %} Everywhere I checked (for instance here or here ), minidetector is recommended. I have installed different versions: pip install minidetector , pip

Mobile Web - Things to consider?

∥☆過路亽.° 提交于 2019-11-30 07:53:04
So I am creating my first webpage catered to mobile browsers. What are some things to consider? How do I get the resolution right for different devices (Blackberries, iPhones, iPads, etc.)? Is there a common method that people are using? Some sort of framework? How do I prevent zooming (on most touch screen phones, you can zoom in by pinching)? What are some other things to keep in mind? Jason Gennaro There are a ton of good practices to follow. Here are a few: make the content shorter and easier to read. People can only scroll so much and read so much on a smaller screen size. develop all

Mobile HTML pages basics

孤者浪人 提交于 2019-11-30 07:12:05
问题 What are the basics for creating a web page for a mobile device? I'm developing a simple page with a table and several links, but when I open it with my Android phone it is too small, and I have to zoom in to see it clearly. Normally when I access a page ready for mobile devices I can see it fairly clearly to begin with. How can I do that? Cheers. 回答1: You can start by adjusting your CSS rules and using the right meta tags: http://learnthemobileweb.com/2009/07/mobile-meta-tags/ http:/

Trying to implement Google's Fast Button

混江龙づ霸主 提交于 2019-11-30 06:55:35
I'm trying to implement Google's Fast button for the mobile touch events, and I seem to be stuck. I'm trying to set it up so that I can make links into fastbuttons, but I can't seem to get my library structure right. What ends up happening is the fastbutton re-inits itself when I try to run a for loop on the links. I'm sure it's just the way i'm setting up the library. can someone please check it out? Thanks! http://code.google.com/mobile/articles/fast_buttons.html ;(function() { /*Construct the FastButton with a reference to the element and click handler.*/ this.FastButton = function(element,

Paypal Adaptive payment for mobile web

﹥>﹥吖頭↗ 提交于 2019-11-30 06:54:35
问题 Im integrating Paypal Adaptive Payment API for a mobile website. But when Im submitting payment to https://www.paypal.com/webscr?cmd=_ap-payment&paykey=value ( For Sandbox : https://www.sandbox.paypal.com/cgi-bin/webscr ) Its always redirecting to Paypal Main Web. Not to Paypal Mobile website. How to redirect client to paypal mobile web? 回答1: Try redirecting your site to https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=AP-XYZ&expType=mini Fill your pay key in place of AP

How to scale a website for mobile devices?

我的梦境 提交于 2019-11-30 04:40:15
I've a very simple static web page (only css and links, no scripts). It looks good on android and iphone, but too small. I'm guessing they put it smaller since it work for most of the sites. How can I override this and make him look the size I want it to be? Android automatically adjusts to the size of your site, try to use width:100% or smaller than around 310 pixels (scrollbar takes space) for normal viewmode. For IPhone try using this code to force the correct size <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> Also to force font-size try to use

Sending an SMS to a Cellphone using Django

不问归期 提交于 2019-11-29 23:07:03
I am building an application, where I have this little survey module, which sends out a simple sms to the phone number I give and has to collect the response(if the user fires it) and show it to me. I am using to django build my project. I have tried django-sms google code project, but I couldn't post messages back from my mobile to my server. I have browsed through many tutorials on sms-gateways/carriers. But I am lost. Can anyone help me in suggesting a tutorial about sending sms from my application(django) to any cellphone? And regarding sending sms to cellphone, would it cost me(just as

Image Size Best Practices for Mobile Application

旧街凉风 提交于 2019-11-29 21:01:00
I am building a mobile application that will target iPhone/iPad and Android phones. The application will involve users taking photos and uploading to my server and later on the users will be able to look at those photos on their mobile devices (although not necessarily their own photos so an Android user might be looking at a photo taken with an iPhone). Which sizes should I save the photos to be able to cover the most use cases? iPads are 1.333 W/H, most mobile phones are 1.5 or 1.333 W/H with some rare 1.666 W/H. Specifically: iPad: 1024x768, iPad3: 2048x1536, iPhone and some other phones: