NetTalk Central

Author Topic: Javascript  (Read 4816 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Javascript
« 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
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Javascript
« Reply #1 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