Michael Peters wrote:
wrap that bit into a function that you have in a .js file. Something like

  function do_cool_stuff(url)
    $('#bad_nhsno').load(
      url, { # <= using TT2 'INTERPOLATE' function
      etc,
    }
  );

And then in your template when you want to use it, do this:
  do_cool_stuff([% url %]);


Got that - will try it tomorrow. Many thanks.
--
Richard Jones
Leeds, UK
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to