Thanks for the help - - One more question - Template for Windows Mobile

Thanks to everyone for the help on my topic “AJAX Thermometer not working”.

Everything seems to be working now.

I have one more desire and that is to have a page for Windows Mobile browsers. Are there any templates out there?

A nice test for browser and auto redirect for Mobile users would be nice too.

Any suggestions?

P.S. This weather station and web pages have become an obsession so this board has become very useful.

Thank you, to those keeping this board going and those patient enough to answer newbie questions.

There are a couple…

Dynamic updating WAP site with CSS (I use this one seen here…http://stillweather.com/wapindex.php)

Regards,

Jack

Thanks a bunch. I now have my WAP pages going and working well. It took me a while to figure out the Graphics page but all is well. I finally figured out that the graphics could be configured using the WDS files from http://sparkline.org

I also found a great WAP redirect page at http://tom.anu007.googlepages.com/wapredirect. I had to add the following lines to get my Windows Mobile browser on my Treo 700wx to redirect properly.

//Check for Windows CE
if(stristr($userBrowser, ‘Windows CE’))
{
$ub=“WML”;
}

Now if I can just figure out why my WU Radar screen, on the normal web pages, puts Omaha at the San Fransico Bay when I zoom out, I think I’ll be done.

Ya! I know I’ll never be done with the tinkering stuff but all the major stuff will be done.

Thanks all,

LAD

The problem with that is sometimes a person using a Windows CE device wants to see the regular page. Some phones are more capable than others and can view full pages.

I’m open to suggestions. It did not work on my Windows Mobile phone until I added that code.

What is returned by $userBrowser = $_SERVER[‘HTTP_USER_AGENT’]; is:

Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x320)WML

Would you recommend testing for PPC instead. Assuming that stands for Pocket PC that would probably be the better choice.

It still works if I change it to:

//Check for Windows CE
if(stristr($userBrowser, ‘PPC’))
{
$ub=“WML”;
}

I re-read your statement and mis-understood what you were saying.

I guess I can put a link on the WAP page to go to full Page. Which now that I think about it more, sound like a good idea.

Thanks