button with function that calling php script
button with function that calling php script
davcarnaby
Posts: 19Questions: 0Answers: 0
hello, i need to set a button and on click i need to calling a php script.
I tried with ajax but does not work .
what i tried is something like this :
$.ajax({
type: "POST",
url: 'xxx.php',
data: {one:string},
success: function (response) {//response is value returned from php (for your example it's "bye bye"
alert(response);
}
});
any ideas??
I tried with ajax but does not work .
what i tried is something like this :
$.ajax({
type: "POST",
url: 'xxx.php',
data: {one:string},
success: function (response) {//response is value returned from php (for your example it's "bye bye"
alert(response);
}
});
any ideas??
This discussion has been closed.
Replies
.....
}
);
yes,like that. but nothing is work :(
[code]
$('#load_all').live('click', function(){
// your code
});
[/code]
OR
[code]
$('#load_all').on('click', function(){
// your code
});
[/code]
Allan