Thanks, just the kind of tutorial I was looking for.

On Aug 25, 2:19 am, "Miguel Beltran R." <[email protected]> wrote:
> http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynami...
>
> 2009/8/24 Stucture_Ulf <[email protected]>
>
>
>
>
>
> > 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to