Try... (lines changed have asterisks)
<head>
<SCRIPT language="javascript">
Formsubfunc(){
Form1.submit();
}//end func
</SCRIPT>
<title>Updating Charge Info</title>
</head>
**** <CFOUTPUT>
**** <Form name="Form1" Action="timeentry_summary.cfm">
**** <input type="hidden" name="startdate" value="#startdate#">
**** <input type="hidden" name="enddate" value="#enddate#">
**** </form>
**** <body onload="javascript:Formsubfunc();"><!--- CHANGED FUNC NAME TO
MATCH NAME IN JS CODE --->
Records Updated.
<!--- <CFLOCATION url="main-menu.cfm"> --->
<!--- REMOVED FORM FROM HERE, GEL [Vinny] --->
</body>
</CFOUTPUT>
-----Original Message-----
From: Angel Stewart [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 1:01 PM
To: CF-Community
Subject: RE: Quick Javascript question :)
Same errors, here's the new code:
<head>
<SCRIPT language="javascript">
Formsubfunc(){
Form1.submit();
}//end func
</SCRIPT>
<title>Updating Charge Info</title>
</head>
<CFOUTPUT>
<body onload="formsubfunc();">
Records Updated.
<!--- <CFLOCATION url="main-menu.cfm"> --->
<Form name="Form1" Action="timeentry_summary.cfm">
<input type="hidden" name="startdate" value="#startdate#">
<input type="hidden" name="enddate" value="#enddate#">
</form>
</body>
</CFOUTPUT>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists