3 ms·
I wrote a small jQuery plugin around that idea ( at https://gist.github.com/435668/85466138a24814baef3ec6a73b7cc1f9187278f4 https://gist.github.com/435668/85466
by jauco 16y ago
I wrote a small jQuery plugin around that idea ( at https://gist.github.com/435668/85466138a24814baef3ec6a73b7cc1f9187278f4 https://gist.github.com/435668/85466138a24814baef3ec6a73b7cc... )
This approach allows you to specify parameters as JSON. So data of arbitrary length can be passed without having to resort to some global variable.
It solves a problem I had where I needed to pass some template engine generated content into an otherwise static script.
Thanks for the tip :)