> I need to auto submit a form. The following *had* been 
> working - and suddenly has stopped working in Netscape and 
> Firefox, though it's fine in I.E.
> 
> <script language="JavaScript">
>     document.forms['cart'].submit();
> </script>
> 
> 1. What's wrong with that?

I wouldn't go so far as to say this is wrong, but I would recommend that you
instead execute the submit method by attaching it to an event handler rather
than just arbitrarily running it at the point when that part of the page is
processed.

<body onload="document.forms['cart'].submit();">

> 2. Any way to do it Coldfusion only without JavaScript?

The short answer is no. The longer answer is, what exactly are you trying to
accomplish? There may be some other alternative that doesn't require
programmatically submitting a form.

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!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202296
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

Reply via email to