> 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.
Submitting a form typically causes the location to change anyway. Also, I
think that the location object is a child of the window object, not the
document object. What exactly are you trying to accomplish?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232933
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