hi
i have created a php file which calls a php function and echos the results.
i dont want to display the results i want to use them in a jquery function.
jQuery('body').prepend("<div id='target'></div>");
gMap.gmap3({
action: 'init',
onces: {
bounds_changed: function() {
var number = 0;
jQuery(this).gmap3({
action: 'getBounds',
callback: function() {
### THIS IS WHERE I WANT THE RESULTS ##
}
});
}
}
},
i have been searching and think i need to use ajax to get the php page
$.ajax({
url: 'ajax/test.html',
success: function(data) {
$('.result').html(data);
alert('Load was performed.');
}
});
but how can i use the data whwere i want it?