David and Dan,

Thanks for the suggestions.  I'll integrate them into my code and report
back to the group once I have them working.

Far


-----Original Message-----
From: Dan Powderhill [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 4:26 AM
To: [EMAIL PROTECTED]
Subject: RE: [ASP] Redirection based on client-side data


Just as a point of interest, using response.redirect will cause a round
trip to the browser and back to the server again. Response.redirect
sends a message back to the browser telling it to redirect to a
different page, which the browser then requests from the server.

If you want to avoid the trip back to the server use server.transfer, as
that is completely server-side. For more information see this URL
(article written for .NET, but applies to .Classic equally as much) :-

http://www.developer.com/net/asp/article.php/3299641

Dan

-----Original Message-----
From: David Smart [mailto:[EMAIL PROTECTED]
Sent: 05 December 2004 08:11
To: [EMAIL PROTECTED]
Subject: Re: [ASP] Redirection based on client-side data


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]




---------------------------------------------------------------------

 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links










---------------------------------------------------------------------
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links









------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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/
 



Reply via email to