Category : ajax

I am writing a javascript with jquery. I do a get request to the server with test as controller and xhrGetListing as method. Let my domain be https://example.com $.get(‘test/xhrGetListing’, function(o){ for(var i=0; i < o.length; i++) { alert(1); $(‘#listInsert’).append(o[i].id); } , ‘json’} $(‘#randomInsert’).submit(function(){ var url = $(this).attr(‘action’); //test/xhrInsert var data = $(this).serialize(); $.post(url, data, function(o){ ..

Read more