Hello mate,
I have a question I don't know how to retrieve a JSON message sent to
the Action from the client:
# Here is a sample of my View:
....
<script src="{{=URL(r=request,c='static/js',f='jquery-1.3.2.js')}}"
type="text/javascript"></script>
.....
.....
function Save() {
var data = $.toJSON( ....# I convert JSON object to
simple text
here....));
$.ajax({
type: 'POST',
url: '{{=URL(r=request,f='action')}}',
contentType: "application/json; charset=utf-8",
data: data,
dataType: 'json'
});
}
I wanted to know How to load the value sent from the client in the
action on the server so i can process them.
I'm using FireBug i can see the request sent and the Post message in
JSON format. I think and believe everything is fine on the client side
I just don't know how to retrieve them on the server side... Since
here I don't use any argument or anything like that.
Please any help would be appreciated.
Thanks,
Yannick P.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---