Login Register

djConfig

Add onLoad with *method* to djConfig

I'd love to see a new onLoadFunc property, or some similar name, in djConfig. This would allow a script to programmatically grab an xdomain version of dojo that automatically calls the specified function when it's loaded, getting around asynchronous loading issues.

For example, I have a bit of javascript I'd like to be loaded in a single call from third-party pages, and my script uses Dojo. To get around those sites having to include the Dojo script as well as mine in their HTML, I'd like to programmatically load it as in:

function onDojoLoad()
{

Dojo and W3C validating XHTML1.1 [example]

Here's a small example on how to pass W3C validation while enjoying Dojo's de facto standard of mixing-in new attributes. This approach leverages XHTML1.1 Modularization http://www.w3schools.com/xHTML/xhtml_modules.asp.

W3C Validating XHTML: http://yadtd.info/dojo-release-1.1.1/dijit/demos/formw3c.html
Original HTML: http://archive.dojotoolkit.org/dojo-2008-07-01/dojotoolkit/dijit/demos/f...

Differences (HTML formatted): http://yadtd.info/dojo-release-1.1.1/dijit/demos/formw3c.diff.html
Differences (diff -u): http://yadtd.info/dojo-release-1.1.1/dijit/demos/formw3c.diff.txt

Prolly just a newb question here...

Hello potential helpers! This is my first day using this toolkit and it looks pretty cool, but I can't seem to get past this initial problem when trying to add Dojo to a aspx page in Visual Studio.

I have downloaded the dojo library and put it at at this location relative to my page: js/dojo-release-1.0.1
I was going through the beginner's tutorial and tried to copy the stuff you have to add in the header to get Dojo to work, modifying it to fit my installation directory. I have my code below.

Syndicate content