You could do server side processing of form tags...
1) you need cfmx
2) You need to create a folder with a file form.cfm in it and (at the head
of the template) cfimport that folder using a prefix of ""
3) Your form.cfm needs to include code to both include the javascript and
recreate the original form tag.

The downside of this is that you need cfimport at the top of all the
templates.

Alternatively you could either use regular expressions (nasty) or perhaps
use javascript (nice).

----- Original Message ----- 
From: "Taco Fleur" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 28, 2003 8:50 PM
Subject: [OT] JavaScript Function?


> Is there some kind of function that enables me to load an include or
> other file that contains specific JavaScript?
> Not wanting to replace the current page, I just want to do the
> following;
>
> Page loads, script checks to see if any forms are present in the page
> (not a problem) then I want to get the name of the form and depending on
> the name I would like to include/load some additional JavaScript into
> the page. I also don't want to work with frames, is any of this
> possible? Or am I just dreaming...
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to