jhollin1138 Posted February 24, 2005 Posted February 24, 2005 (edited) I'm still learning HTML by the old "trial and error" method. I need some help trying to do something. A few weeks ago I added frames to my website so I can add a frame for navigation. It works great with a full screen PC browser. The problem is that I host a "Pocket PC" forum for a program called "TodayPlus." (I didn't write the program and its history is an interesting story.) I get some visitors to my site directly from their "Pocket PC" and the frames make viewing my site nearly impossible. Here is what it looks like. I am not sure how to do it, but I believe you can determine which browser a visitor is using. I am assuming it is basically an "if...then...else..." statement. After making this determination, I can then change your layout accordingly. So if I can figure out how to do it, I can revise my frames to make a more Pocket IE (PIE) friendly site. So here are my questions. 1) What is the format for testing for which browser is being used? 2) Instead of determining the browser, can I determine the operating system? BTW, the version of PIE on my Pocket PC doesn't support CSS and that is another problem all together. Edited February 24, 2005 by jhollin1138 Quote
TCH-Bruce Posted February 24, 2005 Posted February 24, 2005 You need to perform some browser detection. This link can get you started. http://www.netmechanic.com/news/vol3/javascript_no15.htm Quote
jhollin1138 Posted February 24, 2005 Author Posted February 24, 2005 Thanks, that looks like it will help. I knew it had to be easy to do. Now I just need to figure out how PIE is reported. Quote
jhollin1138 Posted February 24, 2005 Author Posted February 24, 2005 I think it is Monday morning, because I am not thinking clearly at all. PIE, at least the version with Pocket PC 2002, does not natively support JavaScript. Is there any way to do it with HTML? How about on the server side? Quote
TCH-Bruce Posted February 24, 2005 Posted February 24, 2005 Well, I've been searching and you could try something like this. http://www.webmasterworld.com/forum21/9507.htm Quote
jhollin1138 Posted February 24, 2005 Author Posted February 24, 2005 (edited) Well, I've been searching and you could try something like this. Thanks for the help. I figured it would be a simple thing to do, and it was until I remembered the JavaScript thing. I guess I might just have to go with plan B. Now I just need to figure out what is "plan B." EDIT: BTW, you cannot link directly to webmasterworld.com post. You need to use Google to help you out: Google Help. Edited February 24, 2005 by jhollin1138 Quote
jhollin1138 Posted August 8, 2005 Author Posted August 8, 2005 I have found a solution to this problem by using PHP. It is pretty simple to do, just some basic PHP knowledge is required. Here is the basic look. >if ( strpos($_SERVER['HTTP_USER_AGENT'], 'PPC') ) { <Pocket PC Page Information Here> } else { <Other Page Information Here> } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.