Thursday, 21 February 2008

Jaxer + Dojo - callbacks

One quick note.. I noticed when doing callbacks that I could see dojo but the second I tried to use it for anything more than a property (like getting the dojo version) things always crashed.

Reason can be found in the discussion of making JQuery run in jaxer. There are three instances of the Dom. Pre-render server, client side and callback. Callback currently doesn't share the same environment so they use a function "oncallback" to to a quick setup before actioning server side callback commands.

To make dojo work correctly with my server-side and callbacks I just the following into my runat='server' block:

function oncallback(){
Jaxer.load("dojo/dojo.js");
dojo = window.dojo;
}


further info on the matter

0 comments: