jquery - trying to get data from external php file -
what's wrong code of mine... i'm new jquery 1.5 ver....
function loadqry(str) { $.ajax({ type: "post", url: "fillpage.php", data: "prodcode="+str, success: function(response_data){ $('s_content').html(response_data) } }); }
the problem have that, it's not returning data external php. i'm confused..
in 1.4 using xmlhttprequest can , it's doing fine. code bugged me lot..
function loadpostqry(str) { $.get( 'fillpage.php','prodcode='+str, function(data) { $('#s_content').html(data); }, "html" ); }
i'm assuming meant this?
Comments
Post a Comment