Note that there are some explanatory texts on larger screens.

plurals
  1. POStoring form data in a javascript session
    primarykey
    data
    text
    <p>I was wondering if it's possible to store form data such as 'title' and 'description' in a javascript session?</p> <p>I'm using the uploadify script to have a flash uploader, but the script isn't passing the title and description. This is my code at the moment;</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery(document).ready(function() { title = $("input#title").val(); description = $("textarea#description").val(); $('#uploadImage').uploadify({ 'uploader': 'flash/uploadify.swf', 'script': 'process/process_uploaded_image.php', 'folder': 'submitted/pictures', 'cancelImg': 'images/cancel.png', 'queueID' : 'fileQueueImages', 'auto' : false, 'multi' : false, 'fileExt' : '*.jpg;*.png;*.gif;*.jpeg;*.JPG', 'fileDesc': 'Images ONLY (.jpg, .png, .gif, .jpeg, .JPG)', 'buttonText' : 'BROWSE', 'scriptData': {'title':title,'description':description,'user':'&lt;?php echo $usr["id"] ?&gt;'}, 'sizeLimit' : '2097152', //2MB //'buttonImg' : '/components/com_mm/assets/images/button-upload-images.png', //'width' : '218', //'height' : '66', onAllComplete: function() { //$('#uploadedImage').load(location.href+" #uploadedImages&gt;*",""); //location.reload(); //uncomment this line if youw ant to refresh the whole page instead of just the #allfiles div location.href = "upload-pics-thanks.php"; }, //onComplete: function(a, b, c, d, e){ // if (d !== '1') // alert(d); //}, onError: function (a, b, c, d) { alert("Error: "+d.type+" Info: "+d.info); }, onSelect: function () { } }); }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload