hi Eric,
I don't understand what you mean...
the functions in script.js (called via getScript) work if I call
$.getScript but I wanna call these functions from outside (after script is
loaded), so I can pass some parameter to the functions that are inside
script.js.
$.getScript is
Oh, neat. I didn't know jQuery continued to fire docready code after
it loaded. Awesome. :D
On Feb 4, 10:14 am, Ricardo Tomasi ricardob...@gmail.com wrote:
Actually after the document has loaded, any function passed to $
(document).ready() will fire immediately. Also functions are called in
Actually after the document has loaded, any function passed to $
(document).ready() will fire immediately. Also functions are called in
the order they were added, so you can put it inside the getScript
callback like this:
$(document).ready(function(){
x = function(d){ alert(d) };
});
Basically, the problem is this here:
$(document).ready(function(){
You wrapped it inside an event that will only fire when the document
throws its ready event. If you include the script after the page is
loaded, regardless from where, th event will never fire. If you remove
the
If you call $.getScript after your regular scripts are already loaded,
domready will not fire again.
On Feb 4, 8:16 am, pere roca pero...@gmail.com wrote:
hi all,
if I'm not wrong we cannot send parameters to a script called by getScript
function;
so, if we download or get the script and
5 matches
Mail list logo