[jQuery] getscript without parameters... an alernative?

[jQuery] getscript without parameters... an alernative?


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 then we call a function inside
the script, shouldn't it work? the function is there, now in our browser...
but doesn't work.
$.getScript('script.js'); x("ssss");
script.js:
$(document).ready(function(){
//x function is declared as global
x=function(datas)
{
    alert(datas)
};
})
Thanks!!
--
View this message in context: http://www.nabble.com/getscript-without-parameters...-an-alernative--tp21829807s27240p21829807.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.