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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What CF tags work in Javascripts?

Status
Not open for further replies.

Puc

Programmer
Mar 12, 2001
10
GB
Hi,

I have been coding in CF and Javascript for a while now, and although I am quite competent, I don't really know what CF tags are 'allowed' to be used in Javascripts.

I am mainly interested in the interaction of the two languages.

There have been accasions when I use a CFLOOP or CFIF and they work fine, conditionalising bits of javascript, then other times when they just seem to ifgnore the logic and process scipts ignoring the CF tags. Any tips anyone?
 
all cf tags "work" in javascript
what you have to keep in mind is : cf is SERVER side whereas js is CLIENT side
that means that FIRST the cf get evaluated and build the html page (setting the variables ...), THEN the jscript can start working
so what didn't work for you, i guess, was that you hoped cf to do something AFTER the page was processed, or you hoped js to do something BEFORE the page was processed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top