3 <style type="text/css">
4 @import "../../resources/dojo.css";
6 <script type="text/javascript"
7 djConfig="isDebug: true, dojoIframeHistoryUrl: '../../resource/blank.html'"
8 src="../../dojo.js"></script>
10 <script type="text/javascript">
11 dojo.require("dojo.io.iframe");
18 form: dojo.byId("uploadForm"),
19 handleAs: "application/json",
21 increment: callCount++,
24 handle: function(response, ioArgs){
25 if(response instanceof Error){
26 console.debug("Request FAILED: ", response);
28 console.debug("Request complete: ", response);
30 ioResponse = response; // to get at afterwards in debugger.
37 <p>This file tests dojo.io.iframe upload using a form POST with a file upload button.</p>
40 <b>Note:</b> This test makes a form POST to upload.cgi. This cgi needs to be made executable for this test to work, and it won't work from local disk.
42 <form action="upload.cgi" id="uploadForm"
43 method="POST" enctype="multipart/form-data">
44 <input type="text" name="foo" value="bar">
45 <input type="file" name="ul1">
46 <input type="button" onclick="sendIt(); return false;" value="send it!">