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
--~--~---------~--~----~------------~-------~--~----~
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