Posted by
Andrew Zeneski on
URL: http://ofbiz.116.s1.nabble.com/json-prototype-ajax-tp175404p175405.html
Si (& all),
I am in process of doing a lot of custom AJAX stuff for a new client. I
intended on using prototype.js but based on conversations with other
people decided to go with dojo instead.
The main part of what I did was a JSON wrapper around the service event
handler. What this does is allows you to define (controller) requests
for ajax calls and have the results return in a lightweight (JSON) format.
This will work with any front end toolkit (Yahoo, Prototype, Dojo, etc).
The main point is to define a standard pattern for AJAX requests in OFBiz.
Deciding on a toolkit for the javascript is very important and based on
what I have researched and discussed with other people, Dojo seems to be
the way to go.
Of course, I am open for discussion with this, but we really should
decide on a standard for contributions back to OFBiz. The last thing I
want to see is several different ways of communication and different
toolkits being used.
Prototype.js has been removed from SVN for the time being. As soon as
there is code which uses one of the toolkits it can be added back in.
Let's start a community vote for the default AJAX toolkit to use in
OFBiz. Based on the work I did, I have already setup the back end
pattern, services using JSON for the return. Now let's decide on a front
end toolkit.
First lets, define the candidates:
1) Dojo
2) Prototype
Andy
Si Chen wrote:
> Hi Andy -
>
> Just saw your commits last night. What are you planning to implement
> with JSON and Ajax?
>
> We were thinking about doing an auto-complete for the form widget lookup
> with prototype.js this week, by the way.
>
> Best Regards,
>
> Si
>
[hidden email]
>
>
>
>