I am using ajax query from jquery. I have 3 module or 3 file. 1st is php file of represent data , 2nd is js file where all javascipt and ajax code is written and 3rd one is my bussiness logic php file.
I call a javascript function from my 1st file i.e show(id)
. After that this function in js file call ajax
function show(id){
// validation / client side.
// function - lll to stringmatch - name proper.
$.ajax({
type : "POST",
cache : true,
dataType: "json",
url : "a.php",
data : {
proid:id
},
success: function(data) {
alert(data);
//$("#match_item_display").html(data);
}
});
}
and my a.php file return json 2 dimensional array... After that i want to use json 2 dimmentional array in php or 1st page.
Please help me guys...
$(document).ready()
, it should work fine for you. Can you elaborate on After that i want to use json 2 dimmentional array in php or 1st page.? – Jordan Arseno Feb 15 '12 at 5:32