• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Combining EXTJS with WebObjects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combining EXTJS with WebObjects.


  • Subject: Re: Combining EXTJS with WebObjects.
  • From: Gustavo Pizano <email@hidden>
  • Date: Mon, 7 Sep 2009 08:59:43 +0200

Ok, I will go with the AjaxJSON, for now, while I get to understand better the situation.

Anyway, Im rereading the request-resposne loop chapter of PWO, and Im understanding better the things, I guess this is a "must understand" for anybody..

G.


On Sep 7, 2009, at 2:05 AM, Mike Schrag wrote:

if the AjaxJSON stuff works for you, I would just go ahead and use it ... the ERXRoute stuff requires a completely different way of thinking about your application (stateless services instead of stateful components).

On Sep 6, 2009, at 4:42 PM, Gustavo Pizano wrote:

Mike hello.

Ok so On firday I had already an "understanding" on how JSON works, and how make it work in my app, following the AjaxExample, not Im looking at the ERXRouteRequestHandler Doc and the ERRoute, but can't figure out how to make it work.. I mean, if with ajaxJSOn I registered the services and the proxy, then form the JS I could just call var a = json.example.person(); and that will return me a person. then what should I do using the ERXRoute ?...

Thx

G.



On Sep 4, 2009, at 5:34 PM, Mike Schrag wrote:

the ERXRoute stuff is modeled after rails and is stateless ... the AjaxJSON stuff is stateful, so it fits nicely if you have a stateful app already. if you are vending "servicey" data, ERXRoute is really nice. regardless, the thing that actually converts object graphs to JSON in the ERXRoute stuff is pretty useful -- gives you a ton of control that the AjaxJSON stuff doesn't support right now.

On Sep 4, 2009, at 11:30 AM, Gustavo Pizano wrote:

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



_______________________________________________
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
References: 
 >Combining EXTJS with WebObjects. (From: Gustavo Pizano <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: John Bruce <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: Gustavo Pizano <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: John Bruce <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: Mike Schrag <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: Gustavo Pizano <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: Mike Schrag <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: Gustavo Pizano <email@hidden>)
 >Re: Combining EXTJS with WebObjects. (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: FOSS Reporting Libraries?
  • Next by Date: How to make the AjaxSubmit button hold until the action binding its executed?
  • Previous by thread: Re: Combining EXTJS with WebObjects.
  • Next by thread: Re: Combining EXTJS with WebObjects.
  • Index(es):
    • Date
    • Thread