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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -