That's the way I've done it.  

JS CODE

CFOUTPUT

BODY TAG WHICH SUBMITS

-----Original Message-----
From: Angel Stewart [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 28, 2001 12:13 PM
To: CF-Community
Subject: RE: Quick Javascript question :)


Nope..didn't try that.

So if I put all the code that does the processing BEFORE the body tag
it will do the processing and THEN submit..not just fly to Javascript
and Submit without processing the CF Code right?

:)

-Gel


-----Original Message-----
From: Vinny DiDonato [mailto:[EMAIL PROTECTED]] 

Have you tried writing a js func which submits a hidden form with your
variables on page load?   

body onload="formsubfunc()"

Js code
Formsubfunc(){
        formname.submit()
}//end func

body onload="formsubfunc()"

<cfoutput>
Form

Type=hidden name="startdate" value="#startdate#"
Type=hidden name="enddate" value="#enddate#"

/form
</cfoutput>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to