FormWidget Ajax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

FormWidget Ajax

Abdullah Shaikh-3
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
Reply | Threaded
Open this post in threaded view
|

Re: FormWidget Ajax

Malin Nicolas
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/

Reply | Threaded
Open this post in threaded view
|

Re: FormWidget Ajax

Bilgin Ibryam-2
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
>
>  
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
Reply | Threaded
Open this post in threaded view
|

Re: FormWidget Ajax

Jacques Le Roux
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
>


Reply | Threaded
Open this post in threaded view
|

Re: FormWidget Ajax

Abdullah Shaikh-3
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
>
Reply | Threaded
Open this post in threaded view
|

Re: FormWidget Ajax

Bilgin Ibryam-2
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