I loaded dojo into this blogspot posting by editing the HTML directly and adding a <script> tag to load the AOL CDN of dojo. The script editor did not allow me to include a <link> so I added it dynamically via a script I found here.
Using Dojo with BlogSpot -- Dojo Injection Example
Using Dojo with BlogSpot -- Dojo Injection Example
Expand "Source Code" to view how this was done
The source for this posting is this posting! I'm not sure what view source is going to look like so the basic technique is here:
<div class="claro">
<div dojotype="dijit.layout.AccordionContainer">
<div dojotype="dijit.layout.ContentPane" title="Section One">Section One</div>
<div dojotype="dijit.layout.ContentPane" title="Section Two">Section Two</div>
</div>
</div>
<script>
var djConfig={addOnLoad: dojoReady, parseOnLoad: true};
var COREBLOG = COREBLOG || {};
var COREBLOG.injectCss = function (filename){
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", filename);
document.getElementsByTagName("head")[0].appendChild(fileref);
};
COREBLOG.injectCss("http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css");
</script>
<script src="http://o.aolcdn.com/dojo/1.5/dojo/dojo.xd.js"></script>
<script>
dojo.require("dijit.layout.AccordionContainer");
dojo.require("dijit.layout.ContentPane");
</script>
<div class="claro">
<div dojotype="dijit.layout.AccordionContainer">
<div dojotype="dijit.layout.ContentPane" title="Section One">Section One</div>
<div dojotype="dijit.layout.ContentPane" title="Section Two">Section Two</div>
</div>
</div>
<script>
var djConfig={addOnLoad: dojoReady, parseOnLoad: true};
var COREBLOG = COREBLOG || {};
var COREBLOG.injectCss = function (filename){
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", filename);
document.getElementsByTagName("head")[0].appendChild(fileref);
};
COREBLOG.injectCss("http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css");
</script>
<script src="http://o.aolcdn.com/dojo/1.5/dojo/dojo.xd.js"></script>
<script>
dojo.require("dijit.layout.AccordionContainer");
dojo.require("dijit.layout.ContentPane");
</script>
DOJO Toolkit Online Training
ReplyDeletehttp://www.21cssindia.com/courses/dojo-toolkit-online-training-174.html
Dojo start
How do I start learning Dojo?
Where are the docs?
How do I get support and training?
Which Dojo version should I use?
Why do I need to use a web server?
How can I avoid common mistakes?
How do I report issues?
How do I contribute and get involved?
Hello Dojo
21st Century providing Online training and support on All Technologies. If you are seeking training and support you can reach me on 91-9000444287. Online training by real time Experts. Call us 001-309-200-3848 for online training
DOJO Toolkit Online Training - 21st Century Software ...
ReplyDeletehttp://www.21cssindia.com/courses/dojo-toolkit-online-training-174.html
DOJO Toolkit Online Training, DOJO Toolkit training, DOJO Toolkit course contents, DOJO Toolkit
Employees to learn at their own pace and maintain control of learning “where, when and how” with boundless access 24/7by 21st Century Software Solutions. contact@21cssindia.com ---- Call Us +917386622889
DOJO Toolkit Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/dojo-toolkit-online-training-174.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, IT Support, Corporate Training institute in India - +919000444287 - +917386622889 - Visakhapatnam,Hyderabad DOJO Toolkit Online Training, DOJO Toolkit Training, DOJO Toolkit, DOJO Toolkit Online Training| DOJO Toolkit Training| DOJO Toolkit| If you’re serious about a career in IT, 21st Century would like to provide you a guidance don’t hesitate to organize a free demo session. For any further information regarding the courses once go through our website Visit:http://www.21cssindia.com | Call Us +917386622889 - +919000444287 - contact@21cssindia.com
ReplyDelete