I don't know that you want to use a form for this. You certainly could - put the hidden field in, and then just call the form's submit method - but you're probably better off just doing a redirect and including the information you want in the URL query string.
The check would be done from <body onload= ...>, and you'd redirect by setting the window.location.href property to your reset page. Then presumably you'll use Response.redirect in that page to get back to your original page without yet another client browser round trip. Dave S ----- Original Message ----- From: The Professional Network To: ASP Developers Sent: Sunday, December 05, 2004 4:57 PM Subject: [ASP] Redirection based on client-side data At the start of my site, I check the user's resolution, and adjust accordingly, using session variables. However, if the user changes resolution, I need to change along with them. The test would be if screen.width still equals my screen width session variable. If it does not, I need to note what page I'm in, redirect to a page that resets the session variable, and then redirect back to the page I just came from. I can write the value of the session variable to an <input type="hidden"> text box in a form, and I can use a script to compare the current value of screen.width to the value of that text box. How would I do the redirect (which would be the programmatic equivalent of having the user click an anchor link)? TIA, Far Farley www.TheAccessWizard.com <http://www.theaccesswizard.com/> --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.801 / Virus Database: 544 - Release Date: 24/11/2004 [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
