diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-04-06 21:49:33 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-04-06 21:49:33 -0400 |
| commit | bb6c557b0ec2c154d4da7aa3b291eebe942b9046 (patch) | |
| tree | 06be29104d80a5533ec76eb9693ce52cae802438 /static/upload-test.html | |
| parent | a136333cfc240a9fa7a76e44344dd6dd6eaade96 (diff) | |
Deleted static files, updated css
Diffstat (limited to 'static/upload-test.html')
| -rwxr-xr-x | static/upload-test.html | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/static/upload-test.html b/static/upload-test.html deleted file mode 100755 index 1590b66..0000000 --- a/static/upload-test.html +++ /dev/null @@ -1,47 +0,0 @@ -<html> - <head> - <title>DUMP file upload test</title> - <script type="text/javascript" - src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> - <script type="text/javascript" - src="/static/js/jquery.form.js"></script> - - <script> - args = 1; - $(document).ready(function() { - var error = function(resp) { - $('#result').hide().css({'color': 'red'}) - .html(resp.statusText).fadeIn(250); - } - var success = function(imageUrl) { - imageUrl = $.trim(imageUrl); - console.log(imageUrl, imageUrl.length); - if ($.trim(imageUrl) == "NOT_LOGGED_IN") { - error({statusText: "Not logged in!" }); - return; - } - $('#result').hide().css({'color': 'green'}) - .html('<img src="' + imageUrl + '">').fadeIn(250); - } - - $('#test').ajaxForm({ - url: '/upload', - type: 'POST', - dataType: 'text', - success: success, - error: error - }); - }); - </script> - </head> - <body> - <h2>Upload File</h2> - <form id="test" enctype="multipart/form-data"> - <input type="hidden" name="room" value="RoomA"> - <input type="file" name="image"> - <br /> - <input type="submit"> - </form> - <div id="result"></div> - </body> -</html> |
