Jump to content


Photo

Retrieving Browser Settings while JS is disabled?


  • Please log in to reply
4 replies to this topic

#1 Makari

Makari
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 June 2006 - 04:00 PM

Hello,

I'm looking for a way to retrieve information about a client's browser.

Basically, I CAN get the information that I need by using JavaScript, but that is an undesirable option as JavaScript can be disabled.

The only portion that I REALLY NEED to know is the browser window's viewable dimensions.

What I am trying to accomplish is to determine the viewer's window settings so that I may layout the page accordingly so that it all fits within the window (barring certain sizes that would be TOO small to be readable).

I'm (obviously) using a database to store the data to be displayed in XML format which is then queried for and returned via php. My goal is to make the ENTIRE site cross-platform and W3C compliant while not allowing options for the user to 'break' the page (such as disabling a necessary display script, due to paranoia).

If anyone knows a way to do this using PHP, or any other method, feel free to help out.

Thanks,

Makari

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 04:09 PM

PHP most definitely not, and I believe not much other than asp or something similiar
z..z..z..z..z..z..z..z..

#3 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 13 June 2006 - 04:11 PM

php runs on the server, not the client.

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]and I believe not much other than asp or something similiar[/quote]
Asp also runs on the server.

#4 Makari

Makari
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 June 2006 - 09:57 PM

Confound it all. I was hoping there was a server-side solution that I could implement. After all, the client must request the page from the server...there should be some way to get basic settings (nothing jeopardizing secure information) from the client to a script without utilizing a scripting system that can be just be 'turned off' by the user.

#5 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 10:26 PM

"should" is not always "is" sadly
z..z..z..z..z..z..z..z..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users