How to integrate prototype js in ofbiz

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

How to integrate prototype js in ofbiz

S K Pradeep kumar
Hi all,

  I am having one application, which already customized with user
requirement. This version of ofbiz is not having prototypejs integrated.
  How can i integrate the prototype js in ofbiz?

With regards,
S K Pradeep kumar,
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate prototype js in ofbiz

Rishi Solanki
Hi Pradeep,
Nothing special to do, just add the prototype.js library file to any of
webapp as currently it is in /framework/images/webapp/images/prototypejs/...
Go and set it using script tag ftl or include it in your screen using <set
field../> tag, and njoy the two open source project without much effort ;-).

Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Thu, Nov 26, 2009 at 10:01 AM, S K Pradeep kumar <
[hidden email]> wrote:

> Hi all,
>
>  I am having one application, which already customized with user
> requirement. This version of ofbiz is not having prototypejs integrated.
>  How can i integrate the prototype js in ofbiz?
>
> With regards,
> S K Pradeep kumar,
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate prototype js in ofbiz

S K Pradeep kumar
Hi Rishi,

Thanks,

But how can use this js to call js based services as like in one page
checkout.

With regards,
S K Pradeep kumar,



On Thu, Nov 26, 2009 at 2:22 PM, Rishi Solanki <[hidden email]>wrote:

> Hi Pradeep,
> Nothing special to do, just add the prototype.js library file to any of
> webapp as currently it is in
> /framework/images/webapp/images/prototypejs/...
> Go and set it using script tag ftl or include it in your screen using <set
> field../> tag, and njoy the two open source project without much effort
> ;-).
>
> Rishi Solanki
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
>
>
> On Thu, Nov 26, 2009 at 10:01 AM, S K Pradeep kumar <
> [hidden email]> wrote:
>
> > Hi all,
> >
> >  I am having one application, which already customized with user
> > requirement. This version of ofbiz is not having prototypejs integrated.
> >  How can i integrate the prototype js in ofbiz?
> >
> > With regards,
> > S K Pradeep kumar,
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate prototype js in ofbiz

Rishi Solanki
Pradeep,
If you have firbug install for your firefox, will be easy to see the request
send to to the server in firebug console.
If not then look at the console the request begun on each click of continue
(One Page Checkout). If you follow the request from the
ecommerce/controller.xml, you will see each AJAX request is entertained by
json types of event handler jsonservice
(org.ofbiz.webapp.event.JSONServiceEventHandler) or jsonjava
(org.ofbiz.webapp.event.JSONJavaEventHandler) or
jsonsimple(org.ofbiz.webapp.event.JSONSimpleEventHandler). These handlers
are created for the purpose to handle JSON objects supported by AJAX.

To make your request you need to add your own custom js file in the screen,
like done for the OnePageCheckout (screen) >> checkoutProcess.js. In
checkoutProcess.js you can see many examples which full fill your purpose.

HTH !

Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.

On Fri, Nov 27, 2009 at 9:35 AM, S K Pradeep kumar <
[hidden email]> wrote:

> Hi Rishi,
>
> Thanks,
>
> But how can use this js to call js based services as like in one page
> checkout.
>
> With regards,
> S K Pradeep kumar,
>
>
>
> On Thu, Nov 26, 2009 at 2:22 PM, Rishi Solanki <[hidden email]
> >wrote:
>
> > Hi Pradeep,
> > Nothing special to do, just add the prototype.js library file to any of
> > webapp as currently it is in
> > /framework/images/webapp/images/prototypejs/...
> > Go and set it using script tag ftl or include it in your screen using
> <set
> > field../> tag, and njoy the two open source project without much effort
> > ;-).
> >
> > Rishi Solanki
> > Enterprise Software Developer
> > HotWax Media Pvt. Ltd.
> >
> >
> > On Thu, Nov 26, 2009 at 10:01 AM, S K Pradeep kumar <
> > [hidden email]> wrote:
> >
> > > Hi all,
> > >
> > >  I am having one application, which already customized with user
> > > requirement. This version of ofbiz is not having prototypejs
> integrated.
> > >  How can i integrate the prototype js in ofbiz?
> > >
> > > With regards,
> > > S K Pradeep kumar,
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate prototype js in ofbiz

S K Pradeep kumar
thanks, rishi
With regards,
S K Pradeep kumar,



On Fri, Nov 27, 2009 at 10:33 AM, Rishi Solanki <[hidden email]>wrote:

> Pradeep,
> If you have firbug install for your firefox, will be easy to see the
> request
> send to to the server in firebug console.
> If not then look at the console the request begun on each click of continue
> (One Page Checkout). If you follow the request from the
> ecommerce/controller.xml, you will see each AJAX request is entertained by
> json types of event handler jsonservice
> (org.ofbiz.webapp.event.JSONServiceEventHandler) or jsonjava
> (org.ofbiz.webapp.event.JSONJavaEventHandler) or
> jsonsimple(org.ofbiz.webapp.event.JSONSimpleEventHandler). These handlers
> are created for the purpose to handle JSON objects supported by AJAX.
>
> To make your request you need to add your own custom js file in the screen,
> like done for the OnePageCheckout (screen) >> checkoutProcess.js. In
> checkoutProcess.js you can see many examples which full fill your purpose.
>
> HTH !
>
> Rishi Solanki
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
>
> On Fri, Nov 27, 2009 at 9:35 AM, S K Pradeep kumar <
> [hidden email]> wrote:
>
> > Hi Rishi,
> >
> > Thanks,
> >
> > But how can use this js to call js based services as like in one page
> > checkout.
> >
> > With regards,
> > S K Pradeep kumar,
> >
> >
> >
> > On Thu, Nov 26, 2009 at 2:22 PM, Rishi Solanki <[hidden email]
> > >wrote:
> >
> > > Hi Pradeep,
> > > Nothing special to do, just add the prototype.js library file to any of
> > > webapp as currently it is in
> > > /framework/images/webapp/images/prototypejs/...
> > > Go and set it using script tag ftl or include it in your screen using
> > <set
> > > field../> tag, and njoy the two open source project without much effort
> > > ;-).
> > >
> > > Rishi Solanki
> > > Enterprise Software Developer
> > > HotWax Media Pvt. Ltd.
> > >
> > >
> > > On Thu, Nov 26, 2009 at 10:01 AM, S K Pradeep kumar <
> > > [hidden email]> wrote:
> > >
> > > > Hi all,
> > > >
> > > >  I am having one application, which already customized with user
> > > > requirement. This version of ofbiz is not having prototypejs
> > integrated.
> > > >  How can i integrate the prototype js in ofbiz?
> > > >
> > > > With regards,
> > > > S K Pradeep kumar,
> > > >
> > >
> >
>