http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically

2009/8/24 Stucture_Ulf <maximilian.moulet...@gmail.com>

>
> I'm using the function below to insert a script to a page
>
> function includeScript(file,name) {
>  var idet='script_';
>  if(name!=undefined) {idet+=name;}
>  var script = new Element("script", { type: "text/javascript", src:
> file, id:idet});
>  $$("head")[0].insert(script);
> }
>
> includeScript('src_name','scriptID');
>
> My question, how can I implement a callback so that I can run
> functions from the script file once it has been inserted? Grateful for
> any hints
> >
>


-- 
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to