Note that there are some explanatory texts on larger screens.

plurals
  1. POStuck jquery submit form in dialog
    primarykey
    data
    text
    <p>I want to submit the form which is done through dialog, the form is as below,</p> <pre><code>&lt;div id="changeProfileDialogSND" style="display:none;width: auto; min-height: 0px; height: 50px;" scrolltop="0" scrollleft="0"&gt; &lt;form id="uploadImageAttrForm" action="/local/..." enctype="multipart/form-data" method="post" style="padding-left: 10px"&gt; &lt;h4&gt;Upload your profile image:&lt;/h4&gt;&lt;br/&gt; &lt;br/&gt; &lt;input id="imageUploadAttr" size="40" name="image" type="file" /&gt; &lt;br/&gt; &lt;input type="submit" name="add" value="add" /&gt; &lt;br/&gt;&lt;br/&gt; &lt;/form&gt; &lt;/div&gt; &lt;div id="changeProfileImage" style="width: 150px; height: 150px; background-color: rgb(0, 0, 0);"&gt;ChangeImage&lt;/div&gt; </code></pre> <p>I have following function to show this form in dialog,</p> <pre><code>$( "#changeProfileImage" ).click(function() { $( "#changeProfileDialogSND" ).dialog( "open" ); return false; }); $( "#changeProfileDialogSND" ).dialog({ autoOpen: false, height: 240, width: 440, resizable: false, modal: true }); </code></pre> <p>now the problem is this form is displaying in dialog and getting submitted through action,this form is basically uploading an image to my server,but i am not able to display the result back in same or different dialog,it goes to that url(action) and submits the file and shows plain white background and a message "file upload success", i want it on stay on same dialog or same page and show another dialog with this msg, any early help plz...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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