Login Register

execute

dynamic execution of the XHR response content

Hello,

I'm evalutaing Dojo by recreating an application previously built with other frameworks. Liking it so far and it's a lot lighter! But just encounter my first road block was hoping someone could help me solve...

Does Dojo provide a means for dynamically executing an XHR response content. In other words parse the xhr response for script tags and execute this javascript?

We've used the following solution (a plugin for YUI) in the past if this helps you understand our requirement.

http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher

Many thanks in advanced!

programatic dialog - missing execute - no real example

Hello,
I have a problem with creating a dialog programmatically. My excute function is always called before the dialog shows up. And when I press the submit button I get an error in firebug telling: "this.execute is not a function". What I really miss is a complete example how to create a Dialog Window in a programmatic way. Most Examples use HTML declarative.

Here is my code. Maybe somebody can help me to get it running.

function addComment(){
alert("xxx");

}

function createDialog(){

Programmatically defined Dialog and Execute Functions

I have tried every which way to assign an "execute" function to a programmatically instantiated dijit.Dialog. What I am looking for is the programmatic equivalent to:

Currently I have something similar to:
myDlg = new dijit.Dialog({id: 'myDialog', title: 'My Dialog', href: 'http://myserver/dialogboxfields.html' });
myDlg.show();

This displays a dialog with several fields. Thanks.

Rob

Syndicate content