I saw the Ajax example in the example component, it was cool to see ajax in
ofbiz. Is there any document where I can check how to use the FormWidget's Ajax stuff ? Also is there any thing in ofbiz using which I can perform Ajax request, not using FormWidget, of course I know I can do it manually using the XMLHttpRequest object, but is there any js methods or any java related stuff added in ofbiz to make a ajax calls ? Thanks, Abdullah |
Hi,
You have many example to example components in framework. For js method, OFBiz use prototype and you have some function to make call easier in select-all.js Nicolas Le mercredi 25 novembre 2009 à 19:32 +0530, Abdullah Shaikh a écrit : > I saw the Ajax example in the example component, it was cool to see ajax in > ofbiz. > > Is there any document where I can check how to use the FormWidget's Ajax > stuff ? > > Also is there any thing in ofbiz using which I can perform Ajax request, not > using FormWidget, of course I know I can do it manually using the > XMLHttpRequest object, but is there any js methods or any java related stuff > added in ofbiz to make a ajax calls ? > > > Thanks, > Abdullah Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ ------- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/ |
In reply to this post by Abdullah Shaikh-3
Abdullah Shaikh wrote:
> I saw the Ajax example in the example component, it was cool to see ajax in > ofbiz. > > Is there any document where I can check how to use the FormWidget's Ajax > stuff ? > > Also is there any thing in ofbiz using which I can perform Ajax request, not > using FormWidget, of course I know I can do it manually using the > XMLHttpRequest object, but is there any js methods or any java related stuff > added in ofbiz to make a ajax calls ? > > > Thanks, > Abdullah > > There is a thread on dev list, and also a jira issue where you can check one ajax proposal http://ofbiz.markmail.org/search/?q=+lookup#query:%20lookup+page:1+mid:j67oelfo3cytufh2+state:results Also the prototype library is included in ofbiz, and used for making ajax request in few places. For example you can search for "new Ajax.Request" in the project and see how it is used. On the server side you have to use a json event handlers if you want to return a json response. Another option is to use the Dojo library which is also available in the project. I think you can find dojo examples in ecommerce, on page checkout screen. HTH Bilgin |
Administrator
|
There is also a basic example of Dojo tree use in WebSiteCMSNav.ftl + WebSiteCMSContent.ftl
Unfortunately, AFAIK (I used it in June), the Dojo version we use does not embed the lastest Dojo tree vesion which is far much better... Jacques From: "Bilgin Ibryam" <[hidden email]> > Abdullah Shaikh wrote: >> I saw the Ajax example in the example component, it was cool to see ajax in >> ofbiz. >> >> Is there any document where I can check how to use the FormWidget's Ajax >> stuff ? >> >> Also is there any thing in ofbiz using which I can perform Ajax request, not >> using FormWidget, of course I know I can do it manually using the >> XMLHttpRequest object, but is there any js methods or any java related stuff >> added in ofbiz to make a ajax calls ? >> >> >> Thanks, >> Abdullah >> >> > Hi Abdullah, > > There is a thread on dev list, and also a jira issue where you can check one ajax proposal > http://ofbiz.markmail.org/search/?q=+lookup#query:%20lookup+page:1+mid:j67oelfo3cytufh2+state:results > > Also the prototype library is included in ofbiz, and used for making ajax request in few places. For example you can search for > "new Ajax.Request" in the project and see how it is used. On the server side you have to use a json event handlers if you want to > return a json response. > > Another option is to use the Dojo library which is also available in the project. I think you can find dojo examples in ecommerce, > on page checkout screen. > > HTH > Bilgin > |
In reply to this post by Bilgin Ibryam-2
Hey Bilgin, Thanks for the info. Can you just confirm, if instead of json I
want to return xml response, then should I need to use the XmlRpcEventHandler, by looking at the name it looks like, any example of xml response in ofbiz ? On Wed, Nov 25, 2009 at 7:47 PM, Bilgin Ibryam <[hidden email]> wrote: > Abdullah Shaikh wrote: > >> I saw the Ajax example in the example component, it was cool to see ajax >> in >> ofbiz. >> >> Is there any document where I can check how to use the FormWidget's Ajax >> stuff ? >> >> Also is there any thing in ofbiz using which I can perform Ajax request, >> not >> using FormWidget, of course I know I can do it manually using the >> XMLHttpRequest object, but is there any js methods or any java related >> stuff >> added in ofbiz to make a ajax calls ? >> >> >> Thanks, >> Abdullah >> >> >> > Hi Abdullah, > > There is a thread on dev list, and also a jira issue where you can check > one ajax proposal > > http://ofbiz.markmail.org/search/?q=+lookup#query:%20lookup+page:1+mid:j67oelfo3cytufh2+state:results > > Also the prototype library is included in ofbiz, and used for making ajax > request in few places. For example you can search for "new Ajax.Request" in > the project and see how it is used. On the server side you have to use a > json event handlers if you want to return a json response. > > Another option is to use the Dojo library which is also available in the > project. I think you can find dojo examples in ecommerce, on page checkout > screen. > > HTH > Bilgin > |
Abdullah Shaikh wrote:
> Hey Bilgin, Thanks for the info. Can you just confirm, if instead of json I > want to return xml response, then should I need to use the > XmlRpcEventHandler, by looking at the name it looks like, any example of xml > response in ofbiz ? > > On Wed, Nov 25, 2009 at 7:47 PM, Bilgin Ibryam <[hidden email]> wrote: > I have never used XmlRpcEventHandler. It seems only to echo the xml sent by the client. Instead you can use screenxml view handler (not event handler). This view handler will render the screen (form widgets) in xml format. If the generated xml doesn't have the format you need, you can use a freemarker to generate the xml manually. Bilgin |
Free forum by Nabble | Edit this page |