Jayant's Blog

Wednesday, October 22, 2008

Integrating Dojo in blogger post

So I have been working on integrating Dojo within my blog... so here goes.

So first, I should thank this blog post on integrating an external JavaScript module within a blogger post. So essentially all the work is done in an external file. But this document still contains the markup that the dojo parser parses to render the light box.

Click on the 'Open lightbox' link below and it will open up a dojo lightbox. These are photos of a sunset I took while in Vancouver in August. Use the keyboard cursor keys to navigate through the photos.

<div class="tundra">
<a href="..." dojoType="dojox.image.Lightbox" group="sunset" title="A beautiful sunset">Open lightbox</a>
<a href="..." dojoType="dojox.image.Lightbox" group="sunset" title="The colors where AMAZING"></a>
<a href="..." dojoType="dojox.image.Lightbox" group="sunset" title="Taken from my friend's apartment"></a>
<script type="text/javascript" src="http://ecodevil.net/dev/blog/blogger_lightbox.js"></script>

Thats it.



Post a Comment

Subscribe to Post Comments [Atom]


Create a Link

<< Home