Login Register

IO

Cross Domain XMLHttpRequests using an IFrame Proxy

As of today, the Dojo codebase can do cross domain XMLHttpRequests (XHR) using an iframe proxy.

dojo.io.bind change: sendTransport off by default

We've gone ahead and made the dojo.transport bind argument off by default. You can turn it on for bind calls individually like so:
dojo.io.bind({
  sendTransport: true,
  url: '...', // etc...
});
Or globally via djConfig:
djConfig.ioSendTransport = true;
With regard to FormBind, you'd specify that one of two ways:
// at declaration
new dojo.io.FormBind({
  formNode: 'myForm',
  sendTransport: true
});

// later on

Degradable AJAX forms with Dojo

While many of you are using Dojo to create high-powered, dynamic applications, I often find myself "sprinkling" Dojo here and there to improve the user experience on "normal" web pages. It is with that in mind that I present to you dojo.io.FormBind. FormBind allows you to quickly setup your "Web 1.0" form for asynchronous submission. How do you do it? Easy:
function magicForm() {
  var x = dojo.io.FormBind({
    // reference your form
    formNode: document.forms[1],

Syndicate content