Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to call/use a custom tag in

Status
Not open for further replies.

chebbi

Programmer
Joined
Feb 6, 2002
Messages
98
Location
IN
I want to call/use a custom tag in a javascript function

like

function test()
{
<cf_test somevar=&quot;&quot;>
}

Iam getting a javascript error for underscore even if i used escape character.Any ideas of how to call custom tag. I want to call this function on an onclick event. Badrinath Chebbi
 
That's impossible. You can only use Javascript syntax between JavaScript tags. You obviously don't understand either ColdFusion OR Javascript, so here is the key piece of information:

ColdFusion code executes on the server (just like a CGI script); JavaScript code executes inside the browser.
 
There is a special directory that you put your Custom Tags in. The path is \InstallDir\CustomTags.

Thought there may be people here that can help you with your javascript question, I recommend you post in the JavaScript Forum with your JavaScript question. Especially if you are getting a JavaScript error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top