[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Test 2 - is this thing on?


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:suppressed

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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.