Web Design Forum: iPhone redirect pop up - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

iPhone redirect pop up I want a pop up asking them if they want to go to my iPhone version

#1 User is offline   alex3410 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 14
  • Joined: 18-October 10
  • Reputation: 0

Posted 04 July 2011 - 11:50 AM

Hey all,
I am working on an iphone version of one of our sites and want to get a pop up message asking them if they want to be redirected or not

does anyone have any example links i can look at?

i have tried googling but all i can find is auto redirects but i think i would prefer to give them the option as to which version they want to see

Thanks in advance
0

#2 User is offline   pandadoodle 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,654
  • Joined: 18-June 11
  • Reputation: 140
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 04 July 2011 - 11:53 AM

instead of pop up try something like this, plenty of advice in google http://www.makeuseof...to-mobile-site/
0

#3 User is offline   alex3410 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 14
  • Joined: 18-October 10
  • Reputation: 0

Posted 04 July 2011 - 12:35 PM

thank you for the link but i would prefer to give the users the option of visiting the mobile version of the site or the full desktop version
0

#4 User is offline   pandadoodle 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,654
  • Joined: 18-June 11
  • Reputation: 140
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 04 July 2011 - 12:40 PM

what? if they are on the phone it redirects them, why would you want to view the other and so on?
0

#5 User is offline   alex3410 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 14
  • Joined: 18-October 10
  • Reputation: 0

Posted 04 July 2011 - 01:00 PM

I want them to be able to view the full site as well as that's what they are used to so i don't want to force people into using the iPhone version of the site if they dont want to

the auto redirects work perfectly but i would prefer to give them the option

thanks
0

#6 User is offline   cepa 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 100
  • Joined: 24-June 11
  • Reputation: 11
  • Gender:Male
  • Location:Krakow, Poland
  • Experience:Nothing
  • Area of Expertise:Web Developer

Posted 08 July 2011 - 09:45 AM

easy in javascript:

- get navigator.useragent
- check if it contains iphone or ipad part, something like /iphone/i regexp
- show popup
- window.location = "http://mymobileweb.tld"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users