[pmwiki-users] Screen width page variable?

Pico pmwiki at ben-amotz.com
Tue Jul 25 08:27:09 CDT 2006


Russ <pmwiki <at> russhosting.com> writes:
> 
> Is there a way to set a page variable indicating the visitor's browser 
> width or system resolution?  Basically, I'm attempting to add 
> (:noright:) if the site is being viewed at less than 950 pixels wide.  
> So far, everything seems to point to a Javascript solution, but I'm 
> hoping there's a way to set a page variable and use a simple (:if:) 
> statement.
> 

I don't have the answer to your specific question, but I was wondering
whether you would want this to change dynamically?  That is, once 
the page has already been posted, what would you want to happen if 
the reader changes the browser width?  

If you want the layout to change, then wouldn't you necessarily have to
use a javascript solution, because  using PmWiki conditionals to test for
a page variable would require processing by the server and, hence, a 
re-posting?

Pico





More information about the pmwiki-users mailing list