Jump to content

Recommended Posts

Posted (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.

 

pie.jpg

 

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 by jhollin1138
Posted

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?

Posted (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 by jhollin1138
  • 5 months later...
Posted

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>
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...