|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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] |
|
#3
|
|||
|
|||
|
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] |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > AutoDetect Browser or WAP device |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|