Posted By


laurenceosx on 10/17/09

Tagged


Statistics


Viewed 118 times
Favorited by 0 user(s)

DojoAfterPageLoad


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your 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);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.