Login Register

Ajax Reliability

So basically I'm implementing dojo into a new chat system I'm working on.

We are trying to support as many people as possible, and I'm trying to figure out if we are approaching this the right way. So if anyone can answer any of my questions that would be great.

1. Can Dojo work with the firefox plugin: NoScript
2. Are the complications with referencing the javascript file on a different domain as the site is servered on (ie: googleapis)
3. Is Dojo as reliable as Iframes, or do developers really still have to deal with that. If so, can dojo also fall back onto iframes?
4. Is Dojo safer than any other ajax framework?
5. Are there any known issues with default settings on any Browser/OS?

I've done as much as I can to test my code on multiple browsers, but you guys might know better than me.

Safety and Reliability

I do not see any Dojo specific issues there, rather, they are all ajax related. Whatever additional security concerns exist will be present in all ajax kits as they are all operating within the sandbox provided by the browser. That you can only make XHR requests back to the server your page originated on "problem" will be present on all kits. That you can load data from anywhere and execute it (JSON in and code out) is a problem for all kits. AFAIK all of the major browsers default settings will allow ajax execution by default. As for white-listing applications (e.g., NoScript) that should work with any kit. In terms of reliability, that's really an application specific metric, and an implementation specific task. Error detection and recovery, where necessary, will allow you to control reliability to a large extent.