Re: Combining EXTJS with WebObjects.
Re: Combining EXTJS with WebObjects.
- Subject: Re: Combining EXTJS with WebObjects.
- From: Gustavo Pizano <email@hidden>
- Date: Fri, 4 Sep 2009 17:30:05 +0200
I see... so the ERXRouteRequestHandler uses JSON also? I'll take a
look at them...
Thanks!
G.
On Sep 4, 2009, at 5:18 PM, Mike Schrag wrote:
yes you would use the url generated by the Proxy component in an
XMLHttpRequest. An example using JQuery (I don't know prototype.js)
would be:
var ajaxActionUrl = "<webobject name=AjaxSimpleProxyActionUrl></
webobject>";
var postData = { "data" : $.toJSON( "a json formatted string eg {
"foo" : "bar" ) };
$.post(ajaxActionUrl, postData);
Note that the toJSON function is provided by a JQuery plugin.
You might want to also look at the ERXRouteRequestHandler ... I
really should go back to the JSON stuff in Ajax framework and merge
those concepts together better. The JSON generation in the ERXRoute
API's is really nice.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden