Hey guys I am trying to receive the following
function sendUserfNotes() {
$.ajax({
type: "GET",
url: '/pcg/popups/grabnotes.php',
data: {
'nameNotes': notes_name.text(),
},
success: function () {
alert(notes_name.text());
}
});
}
in the reciever end I have the following:
<?php
$test = $_GET['nameNotes'];
echo $test;
?>
Nothing happens here though. It goes through but I am unable to get the value of the GET sent? I don’t know where its being sent is being opened by JQuery UI dialog box or not. Help needed.
In your success callback:
you are not retrieving the data from the request. From the jQuery documentation:
You should use: