Ticket #5878 (closed enhancement: fixed)
Add Jaxer Support
| Reported by: | kriszyp | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | General | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Currently Dojo doesn't run on the Jaxer server (on the server side using runat="server") for the following reasons: 1. Auto-detection of the dojo root doesn't work. I can't figure how it is even possible in Jaxer. The script object has a null value for the src attribute. The Error.fileName returns the filename of the enclosing HTML file. I don't know how it can be done other than manual configuration djConfig:{baseUrl:...} 2. global.load is not available and document.write and appending a script tag do not work because they don't set the runat attribute to "server" (and even then who knows). This can be corrected by setting this.load = Jaxer.Includer.load. This appears to fix this problem. I am including a patch for dojo.js for to fix this. 3. I can't find any way to programmaticly detect when the DOM is loaded on the server side. There is an onserverload attribute which works from the HTML, but the obvious programmatic equivalents seem to have no effect. (document.onserverload = dojo._loadInit and document.addEventListener('serverload', ...)). The only thing that seems to work is <body onserverload="dojo._loadInit">