|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Cfgrid Javascript function not working if not put inside <hea d></head> tags
> if i call a function say 'myfun' using <cfsetDave Watts 08/21/08 05:21 P > if i call a function say 'myfun' using <cfset > ajaxOnLoad("myfun")> for a cfgrid, the function will work > ONLY IF PUT INSIDE <HEAD></HEAD> tags. i need to make that js > dynamic.. please some one can help me with any tweaks that > will allow JS to be placed anywhere in the code ? I'm not sure what you mean by "make [it] dynamic". Your function will need to be declared before it's invoked. If you simply need to write the function using CF before delivering it to the browser, you can use the CFHTMLHEAD tag to place the output that creates the function in the document HEAD. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||