NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: Rene Simons on September 23, 2012, 01:30:32 PM

Title: Javascript
Post by: Rene Simons on September 23, 2012, 01:30:32 PM
Hi,

I have a chunk of javascript that I want to run in my page.
Part of it I have to "generate".
I guess it is sensible to use p_web.script(clip(myScript)) in the place I want to use it.

Do I use <script></script> tags "around" the p_web.script(clip(myScript)) bit?

Cheers,
Rene
Title: Re: Javascript
Post by: Bruce on September 24, 2012, 12:12:15 AM
>> Do I use <script></script> tags "around" the p_web.script(clip(myScript)) bit?

no, that's added for you by the Script method.
(If you want to see the code inside the script method, see the netweb.clw file.)

cheers
Bruce