|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Browser Detection
I really not sure if i'm using the right title
Right now, I'm trying to make a WAP site, using PHP+MySQL for the server side. But i want to support as many handset as possible (the one that support only WAP1.x and or WAP2.0). How do I detect what does "the browser" support? pseudocode: (index.php) if (browser support xHTML) redirect to index2.php else if (browser only support wml) redirect to index2.php else "only support for mobile devices browsers.....!!" thanx before, |
|
#2
|
||||
|
||||
|
You can read a really good thesis by a Finnish student entitled Mobile Friendly Web Services.
Search these forums for browser detection, I am sure you will come up with something. Here is just one result. You could also see the Serving up XHTML with the correct MIME type article at Keystone and adjust it accordingly to check for text/vnd.wap.wml. I am / have developed something that I think covers all this, but I am still in the testing process. It won't be ready for a while - depends how motivated I am, but I will post it if it works. It uses amended code from keystone and then some of the stuff used in the forum link I posted. If you need more information or help, let us know. Good luck.
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
|||
|
|||
|
thanx,
but anyway i just wanna ask one more thing. just now i found a mobile device spec like these: - WAP1.2.1 - xHTML browser does that mean the mobile device can read xHTML presentation or just WML because of WAP1.2.1 factor? |
|
#4
|
||||
|
||||
|
Hi,
The method suggested by looks for accept types and calculates the most appropriate. Therefore if you hit a device with the specs you mentioned, it would work out what language is best, wml or xhtml. I haven't read the specs for wap 1.2.1, but I would imagine it is a stripped down version of xhtml. Sorry I can't give you any more info than that at the moment, need to read up on it ![]() Jamie Last edited by jabba_29 : July 29th, 2005 at 02:21 AM. |
|
#5
|
|||
|
|||
|
just like this mobile phone spec: http://www.gsmarena.com/nokia_3100-453.php
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Browser Detection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|