You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
<html> |
|
<head> |
|
<script language="JavaScript" type="text/javascript"> |
|
// Dojo configuration |
|
djConfig = { |
|
isDebug: true, |
|
dojoIframeHistoryUrl: "../../iframe_history.html" //for xdomain testing. |
|
}; |
|
</script> |
|
<script language="JavaScript" type="text/javascript" |
|
src="../../dojo.js"></script> |
|
<script language="JavaScript" type="text/javascript"> |
|
dojo.require("dojo.io.IframeIO"); |
|
var ctr = 0; |
|
var foo; |
|
|
|
function sendIt(){ |
|
var bindArgs = { |
|
formNode: document.getElementById("uploadForm"), |
|
mimetype: "text/xml", |
|
transport: "IframeTransport", |
|
content: { |
|
increment: ctr++, |
|
fileFields: "ul1" |
|
}, |
|
handle: function(type, data, evt){ |
|
dojo.debug("Type:", type); |
|
if(type == "error"){ |
|
dojo.debug("Error message: " + data.message); |
|
}else{ |
|
dojo.debug("First H1 tag text:", data.getElementsByTagName("h1")[0].innerHTML); |
|
foo = evt; // to get at afterwards |
|
} |
|
} |
|
}; |
|
var request = dojo.io.bind(bindArgs); |
|
} |
|
</script> |
|
</head> |
|
<body> |
|
<form action="IframeIOResponse.html" id="uploadForm" |
|
method="GET"> |
|
<input type="text" name="foo" value="bar"> |
|
<input type="button" onclick="sendIt();" value="send it!"> |
|
</form> |
|
<p> |
|
This test should <b style="color: red">always fail</b>, because IframeTransport does not support XML responses.</i> |
|
</p> |
|
</body> |
|
</html>
|
|
|