Screenwidth Screenheight Javascript

Post Reply
gerry.odea
Posts: 98
Joined: Fri Sep 19, 2008 9:33 am

Screenwidth Screenheight Javascript

Post by gerry.odea »

Is there a way to have texis script read the screen.width screen.height variables from the browser with java script without using cookies? The problem with writing as a cookie is that it only reads after the page has been loaded. So the next instance of the page will have the correct setting but the one that opens does not.
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

Screenwidth Screenheight Javascript

Post by mark »

Vortex (Texis script) is out of the picture by the time the HTML is delivered to the browser. Any browser interactions have to be done in javascript. Javascript could set hidden form variables or URL query strings to pass data back to texis when the user clicks.
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Screenwidth Screenheight Javascript

Post by John »

One possible other way to achieve it is using AJAX, where the initial page is just a skeleton, determines the size, and then does an AJAX request for the content to fill in.

Ideally most screen size dependent code should be done with CSS after delivery of the content, possibly using AJAX to pull in more content if the initial delivery is insufficient.
John Turnbull
Thunderstone Software
Post Reply