- see footer for list info -<
I have a udf that I need to run accross practically all my pages (any
page with an internal link). I am defining it in application.cfm like so:
<cfif not isdefined('XMLURL')>
<cfscript>
function XMLURL(url) {
var resultString=URLSessionFormat(url);
resultString=ReplaceNoCase(resultString,"&","&","ALL");
return resultString;
}
</cfscript>
</cfif>
Now, when I try to call the function in a page I get the error
'*Variable xmlurl is undefined*'.
I am using like this:
<a href="#xmlurl(theURL)#">My link</a>
Is there a way to make this function 'global' (or some other correct
jargon)?
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<