Following is my code, where I am trying to show the dialog after doing the xhrpost ,
but the dialog does not show up and submits to the default url,
i tried using 1.0 and 1.1 dojo release,
please help,
function getHtml(e) {
e.preventDefault();
dojo.xhrPost ({
// The page that parses the POST request
url: 'myurl',
// Name of the Form we want to submit
form: 'myform',
// Loads this function if everything went ok
load: function (data) {
// Put the data into the appropriate
alert('data' +data);
dijit.byId('dialog1').setContent(data);
dijit.byId('dialog1').show();
},
// Call this function if an error happened
error: function (error) {
console.error ('Error: ', error);
}
});
}

How is this invoked?
How are you attaching this function to the form? That may be where the error is occuring. I dont see anything at a glance in the function itself.