Posted By

laurenceosx on 10/17/09


Tagged

Dojo DojoAfterPageLoad


Versions (?)

DojoAfterPageLoad


 / Published in: JavaScript
 

URL: http://www.oreillynet.com/onlamp/blog/2008/05/dojo_goodness_part_7_injecting.html

  1. djConfig = {afterOnLoad : true, require:['dojo.date','dojo.cookie']};
  2.  
  3. djConfig.addOnLoad = function(){ alert('DOJO loaded') } ;
  4.  
  5. var e = document.createElement("script");
  6. e.type = "text/javascript";
  7. e.src= "http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js";
  8. document.getElementsByTagName("head")[0].appendChild(e);

Report this snippet  

You need to login to post a comment.