It's kind of odd what you do: namely input nested JSON data as URI
parameters in a GET request.
It doesn't make sense to URL encode your data that has a nested
object, so probably jQuery skips it.
URI parameters are only key/value paris.
POST can be used if you want to include arbitrary data in the body of
a request.
Maybe something like this instead (assuming you don't want to POST
data on the server)
$.ajax({
url: "http://localhost/test/gui/ajax_member.php",
type: "GET",
data: 'mybutt=' + data.mybutt + '&member=' + data.member.name,
cache: false,
dataType: "json",
...
})
regards Jakob
No comments:
Post a Comment