do you mean this.


Pat

<cfoutput>
function new_fnc() {


......more _javascript_ code
.
...
....
alert('#cf_variable#');
return true;


} // end of new_fnc.....


</cfoutput>

-----Original Message-----
From: daniel kessler [mailto:[EMAIL PROTECTED]
Sent: Monday, June 07, 2004 12:32 PM
To: CF-Talk
Subject: Re: need function available for CF and JS

>You can't use a CF function in JS. Different syntax!!!! You have to
>duplicate it (and adapt it to JS).

that's not exactly what I meant.  I meant to call the js function from cf, but others have told me that this isn't doable or practicle.  Really I just
wanted the js alerts.

Still, duplicating the cf function in js is almost a drop'n'play.  Since it's written in an ecma like script, all I really need to do is to change the EQ to
== (and such) and adjust the names of any api calls - createDateTime() becomes Date().

thanks for answering Pascal, Dave and everyone.
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to