Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 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
Default
mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

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
pierrebenoit is offline  
Unread 3rd Jul 2012, 12:47 AM   #2
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

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!
Jay Moreno is offline  
Unread 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
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

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.
gabbo is offline  
Unread 12th Jul 2012, 07:15 AM   #4
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

Originally Posted by gabbo View 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.
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!
Jay Moreno is offline  
Unread 13th Jul 2012, 08:39 AM   #5
Active Warrior
 
Join Date: 2012
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

Originally Posted by pierrebenoit View Post

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
Hi,
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.
therealtiger is offline  
Unread 22nd Jul 2012, 10:47 PM   #6
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

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.

WillR is offline  
Unread 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
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

Originally Posted by pierrebenoit View Post

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
You should use a PHP user agent script. It is a much more robust way to detect mobile devices. Javascript, with regards to mobile device detection, is precarious at best.

John

JohnE is offline  
Unread 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
Default
Re: mobile redirect scripts
Share on: 
fb share twitter share gplus share more share

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.
brianng is offline  
Closed Thread


Bookmarks

Tags
mobile, redirect, scripts


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:29 PM.