|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
desactivate the navigation from emulator
Hi folks, everything is in the title,
I d like to know if it is possible to detect if the client is an emulator (Even with OpenWave that you can set the User Agent and the UAProf to the value you want) The only things i can control as far as am i, is if the client support wml.... Thanx in advance |
|
#2
|
||||
|
||||
|
What language are you using? Do you have access to server side technology?
If you are, then you can check $_SERVER['HTTP_ACCEPT'] to see if the browser can read text/vnd.wap.wml... I have some pretty funky code written in PHP that can do this, if you want I can post it. It is based on this article.
__________________
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
|
|||
|
|||
|
Well, i read the article, but I don t understand very well the code...
I m using JSP /Servlets... Your idea about checking the text/vnd.wap.wml is a good idea for browser like IE o mozilla, but it doesn t work if I use OpenWave or another nokia emulator... |
|
#4
|
||||
|
||||
|
Can't help you on the JSP side, but what I do is related to that article.
I check against accept to see if it accepts xhtml, if it does, I check against a list of known phones / emultators and check to see if xhtml or wml is the prefered content type. I have got this working if I browse my site through the emulator at Gelon.net..... |
|
#5
|
|||
|
|||
|
Quote:
well, I guess that 's what I'm going to use... How do you see if the browser prefers to display wml rather than xhtml??? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > desactivate the navigation from emulator |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|