The obvious answer would be to change where the nav is generated to the location where it actually appears. What I tend to do is store dynamic content in variables using CFSAVECONTENT, then I can manipulate it elsewhere is I need to before it actually gets output.
Russ -----Original Message----- From: Mark Flewellen [mailto:[EMAIL PROTECTED] Sent: 19 February 2006 00:09 To: CF-Talk Subject: Set session variable with Javascript? I was wanting to set a session variable as a user clicks on a link, so that when the next page loads it will display the correct navigation for them. The problem being is that the header and navbar are generated from the application.cfm file. This creates the problem that the user arrives at the page from the link, the session is set but they have the old nav bar, as soon as they then browse to any new pages the navbar displays correctly. So the question is can you set a session variable with javascript (onclick) and then redirect them and if so what would the code look like, or would I be better having a page that sets the session then redirects them to the correct page. Mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232817 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

