> -----Original Message-----
> From: Les Mizzell [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 11, 2005 3:20 PM
> To: CF-Talk
> Subject: OT: Just a touch of Javascript
> 
> 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>

Where does this script appear?  Often with inline scripts like this the
problem lies in the order of operations - if the script attempts to run
before the form is "on the page" it will fail.
 
> 1. What's wrong with that?

I don't see anything wrong with the script itself.  You might want to do an
alert(typeof document.forms['cart']) to see if the object is instantiated.

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

Nope.  ColdFusion is out of the picture by this time.

Jim Davis




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:202253
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