3rd Jul 2012, 12:20 AM | #1 |
HyperActive Warrior Join Date: 2004 Location: Chartres, France.
Posts: 120
Thanks: 105
Thanked 7 Times in 6 Posts
|
Hi, I would like to know how to test a mobile redirect script. I've put one in a main website and I can't go to the mobile website using an iphone simulator. I've use mobiliser software without success. The redirect script use javascript Any help? Thanks |
If you kwow what you want, you can have it - it Works! - http://skl.sh/1TIbEL8 | |
3rd Jul 2012, 12:47 AM | #2 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
Hi Pierre, I am thinking your redirect script is using screen size detection if this is the case mobilizer will not pass the proper screen size to your script, instead am thinking your script is picking up your actual desktop screen size. If you are using screen size detection change the width to be more than your desktop resolution whilst testing with mobilizer Best way to test is on an actual real handset - if you don't have access to one try perfecto mobile.com Hope that helps Jay |
Sorry, I am too busy helping people to think of a cool signature! | |
12th Jul 2012, 05:23 AM | #3 |
SEO Maniac Join Date: 2012 Location: Miami/Basel
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
|
If you don´t have a mobile phone on hand just install Ref Agent Switcher Addon for Firefox. Almost any mobile redirection script checks for the browser agent so this should do the job.
|
12th Jul 2012, 07:15 AM | #4 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
You will be surprised many people still use screen size detection for redirecting, I wish people would user agent redirection, would be easier to detect! |
Sorry, I am too busy helping people to think of a cool signature! | |
13th Jul 2012, 08:39 AM | #5 | |
Active Warrior Join Date: 2012
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
|
Can you let me know what are you doing in detail with the code so that i can help you. Might me there something wrong in your code i guess. | |
22nd Jul 2012, 10:47 PM | #6 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
Yes, Jay is correct. Screen size detection will not work on an emulator. The same way a flash website will show fine on an emulator but not an iPhone. The emulator is using your computers resources.
|
| |
23rd Jul 2012, 10:08 AM | #7 | |
HyperActive Warrior Join Date: 2008 Location: Toronto, ON
Posts: 108
Thanks: 11
Thanked 14 Times in 13 Posts
|
John | |
| ||
5th Aug 2012, 03:42 PM | #8 |
Active Warrior War Room Member Join Date: 2011 Location: Fresno CA
Posts: 40
Thanks: 0
Thanked 2 Times in 2 Posts
|
I've been using this https://github.com/sebarmeli/JS-Redirection-Mobile-Site for my 3 sites and they work just fine. What iphone simulator are you using? Use their DOM inspector.
|
Bookmarks |
Tags |
mobile, redirect, scripts |
| |