I got it to work. It isn't as modular was I would like, but what I do is add a hidden form field to each form, set that value onclick using js to the value of the page I want it to go to, then submit the form and use a cflocation to boot off to that page based on the form value. Its pretty slick just more code to add to each page.
Jeremy -----Original Message----- From: Josh Nathanson [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 2:03 PM To: CF-Talk Subject: Re: javascript submit form and then location in same function Hi Jeremy, When you do "window.document.theform.submit()", it will submit the form to whatever file you have in your form action attribute <form action="foo.cfm">, before it hits the window.document.location=url line in your js code. So, you'll probably need to do a little more work to send the user to the right place after the user clicks the nav. Or, try to make them submit the form, I think people are pretty used to that, rather then having them click a nav element. -- Josh ----- Original Message ----- From: "Jeremy Bunton" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Monday, February 20, 2006 10:20 AM Subject: javascript submit form and then location in same function >I have <hrefs> that call this function > > <script type="text/javascript"> > function submitandgo (url) > { > window.document.theform.submit(); > window.document.location=url; > } > </script> > > If I don't use the location portion it works fine, but it seems to boot > off > to the new page before the form submit. An suggestions? Is there a way in > cf > to submit a form and then do a cflocation. Perhaps I need some more js > code > in there. > > Jeremy > > -----Original Message----- > From: Joe Ferraro [mailto:[EMAIL PROTECTED] > Sent: Monday, February 20, 2006 12:39 PM > To: CF-Talk > Subject: onSessionEnd locking > > When accessing the application scope in the onSessionEnd function in > Application.cfc should you lock in the scope of application or with a > named > lock? > > The reason I ask is because the documentation uses a named lock and the > onSessionEnd function cannot reference the application and session scopes > directly. > > Thanks, > > Joe > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232944 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

