Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 10th, 2000, 05:49 AM
MartinKoss MartinKoss is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 MartinKoss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am trying to find example script or headers that can be placed at the top of the file in the root of a site (index.html / index.php etc.,) that automatically detects whether the request is coming from a WAP device or a PC browser so that it can then either display the correct include file or redirect to /WAP/index.wml or /HTML/index.php (for example).

Any help or links would be greatly appreciated.

Thanks,

Martin

Reply With Quote
  #2  
Old November 23rd, 2000, 12:12 PM
peterg's Avatar
peterg peterg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Alton,Hampshire,UK
Posts: 40 peterg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
There's an interesting link I stumbled across at:
http://allnetdevices.com/faq/?pair=04.006

Bye for now !

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by MartinKoss:
I am trying to find example script or headers that can be placed at the top of the file in the root of a site (index.html / index.php etc.,) that automatically detects whether the request is coming from a WAP device or a PC browser so that it can then either display the correct include file or redirect to /WAP/index.wml or /HTML/index.php (for example).

Any help or links would be greatly appreciated.

Thanks,

Martin
[/quote]


Reply With Quote
  #3  
Old November 28th, 2000, 12:56 PM
BlumVentera BlumVentera is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 BlumVentera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try this

ua = Request.ServerVariables("HTTP_USER_AGENT")

if (Instr(ua, "Mozilla")=0) then
Response.Redirect "http:// (wapurl)/login.wml"
end if

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by MartinKoss:
I am trying to find example script or headers that can be placed at the top of the file in the root of a site (index.html / index.php etc.,) that automatically detects whether the request is coming from a WAP device or a PC browser so that it can then either display the correct include file or redirect to /WAP/index.wml or /HTML/index.php (for example).

Any help or links would be greatly appreciated.

Thanks,

Martin
[/quote]


Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingMobile Programming > AutoDetect Browser or WAP device

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap