diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojo/tests/io/iframeUploadTest.html | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojo/tests/io/iframeUploadTest.html')
-rw-r--r-- | includes/js/dojo/tests/io/iframeUploadTest.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/includes/js/dojo/tests/io/iframeUploadTest.html b/includes/js/dojo/tests/io/iframeUploadTest.html deleted file mode 100644 index 6f6db6f..0000000 --- a/includes/js/dojo/tests/io/iframeUploadTest.html +++ /dev/null @@ -1,50 +0,0 @@ -<html> - <head> - <style type="text/css"> - @import "../../resources/dojo.css"; - </style> - <script type="text/javascript" - djConfig="isDebug: true, dojoIframeHistoryUrl: '../../resource/blank.html'" - src="../../dojo.js"></script> - - <script type="text/javascript"> - dojo.require("dojo.io.iframe"); - - var callCount = 0; - var ioResponse; - - function sendIt(){ - dojo.io.iframe.send({ - form: dojo.byId("uploadForm"), - handleAs: "application/json", - content: { - increment: callCount++, - fileFields: "ul1" - }, - handle: function(response, ioArgs){ - if(response instanceof Error){ - console.debug("Request FAILED: ", response); - }else{ - console.debug("Request complete: ", response); - } - ioResponse = response; // to get at afterwards in debugger. - } - }); - } - </script> - </head> - <body> - <p>This file tests dojo.io.iframe upload using a form POST with a file upload button.</p> - - <p> - <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. - </p> - <form action="upload.cgi" id="uploadForm" - method="POST" enctype="multipart/form-data"> - <input type="text" name="foo" value="bar"> - <input type="file" name="ul1"> - <input type="button" onclick="sendIt(); return false;" value="send it!"> - </form> - </body> -</html> - |