thanks for the answer Mike. I probably wasn't very clear. I'm trying to make the loading happen as part of blah.something(variable).
something kinda like this: var blah ={ dynaLoad : function(variable){ $.getScript('alert.js',variable) // the script would simply contain the line "alert(variable);" }, somethingElse : '' } blah.dynaLoad('cool beans'); // this would now produce a "cool beans" alertbox.