Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7071133

Browse files
author
Kitson Kelly
committedFeb 28, 2012
Fixed incomplete usage dojo/io/iframe
1 parent f786bac commit 7071133

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed
 

‎dojo/io/iframe.rst

+20-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ Dojo 1.7 (AMD)
4141
4242
require(["dojo/io/iframe"], function(ioIframe){
4343
ioIframe.send({
44-
form: my;
44+
form: "myform",
45+
url: "handler.php",
46+
handleAs: "json"
47+
}).then(function(data){
48+
// Do something
49+
}, function(err){
50+
// Handle Error
4551
});
4652
});
4753
@@ -50,6 +56,19 @@ Dojo < 1.7
5056

5157
.. js ::
5258
59+
dojo.require("dojo.io.iframe");
60+
61+
dojo.io.iframe.send({
62+
form: "myForm",
63+
url: "handler.php",
64+
handleAs: "json",
65+
load: function(response, ioArgs){
66+
// Do something
67+
},
68+
error: function(response, ioArgs){
69+
// Handle error
70+
}
71+
});
5372
5473
dojo.io.iframe supported object properties
5574
-------------------------------------------

0 commit comments

Comments
 (0)
Please sign in to comment.