This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" type="text/javascript"> | |
function formUploadCallback (result) { | |
console.log("Upload OK:", result); | |
alert('Upload OK'); | |
} | |
</script> | |
<form target="upload_target" action="upload.php" enctype="multipart/form-data" method="post"> | |
File: <input name="myfile" type="file" /> | |
<input name="submitBtn" type="submit" value="Submit" /> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* $.unserialize | |
* | |
* Takes a string in format "param1=value1¶m2=value2" and returns an object { param1: 'value1', param2: 'value2' }. | |
* If the "param1" ends with "[]" the param is treated as an array. | |
* | |
* Parses the value as String, Int or Boolean | |
* @todo: parseFloat could also be useful I guess. | |
* | |
* Example: |
NewerOlder