Javascripting....

matt neuburg matt at tidbits.com
Mon Nov 25 10:47:23 PST 2002


On Fri, 1 Nov 2002 12:08:02 -0800, "Kris Anderson" <kanderson at eric.uoregon.edu> said:

>What is the proper way to insert javascript 
>in to a Frontier generated page?

There is no "proper" way. The simplest way is to have the javascript inserted by a macro call. The reason this works is that the material thus inserted will not be evaluated for macros again, and so the curly braces won't be seen. For example, if a script at workspace.myJavascript returns the desired Javascript material as a string, then saying

    {workspace.myJavascript()}

in the web page object inserts the Javascript material at that point. m.

matt neuburg, phd = matt at tidbits.com, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/



More information about the Frontier-Users mailing list