Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery added form works after refresh
    primarykey
    data
    text
    <p>i have image with it attached form! and when i change some value in form, then it automatically .post() values to other file and updates DB! i also have option to add new image and then it append image and new form for that (new-)image, but form does not .post() values for that new image until i have refreshed the page.... HTML IS 100% CORRECT</p> <pre><code>var http_adr = "http://192.168.1.200/dev/"; function addPictures(what, where){ AIM.start(what,{ AppendData:{ 'parent':where }, beforeComplete:function(){ }, onComplete:function(returnData){ var jdata=$.parseJSON(returnData); for (var i=0; i&lt;jdata.filename.length; i++){ var html_var = '&lt;div class="image_wrapper"&gt;&lt;div class=""&gt;&lt;img src="../../module/catalog/product_img/'+where+'/'+jdata.filename[i]+'_small.jpg" /&gt;&lt;/div&gt;&lt;div class="details_div"&gt;'; var html_var2 = ''; for (var n=0; n&lt;jdata.detail_table[i].length; n++){ html_var2 = html_var2 + '&lt;form name="' + jdata.pdid[i] + '"&gt;' + jdata.detail_table[i][n] + '&lt;input name="price" value="0.00" /&gt;&lt;input name="stock" value="0" /&gt;&lt;/form&gt;'; } var html_done = html_var + html_var2 + '&lt;/div&gt;&lt;/div&gt;'; $('.box:visible').append($(html_done).hide().fadeIn(1500)); } }, UPtarget:http_adr+'plugins/upload/upload.php' }); } var iloc = '../../module/catalog/_i.php'; $(document).ready(function() { $('input').change(function() { var pdid = $(this).parent('form').attr("name"); $.post( iloc, $(this).serialize() + '&amp;pdid=' + pdid + '&amp;a=edit_detail', function(data) { } ); }) }) </code></pre>
    singulars
    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.
 

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