Hi Sacha,

You're right, I was in a mistake. I forgot to compare this file with the
original. I am working with a copy of this app placed in the hot-deploy dir,
so when I did the vendor drop the original ecommerce app was updated but not
the custom ecommerce I'm really using.

Sorry for that and thanks a lot for your help!

On Wed, Jan 5, 2011 at 1:53 PM, Sascha Rodekamp <sascha.rodekamp.lynx.de@
googlemail.com> wrote:

> Hi Jonatan,
> if 'checkoutInfoForm' is the id of the Form you've to add a #.
> 'jQuery("#checkoutInfoForm'')' That makes jQuery to return a jQuery Dom
> Object of the form (that's not the same as the normal DOM Object. To Get
> this 'normal' (classical) DOM Obejct try 'jQuery("#checkoutInfoForm'')[0]'.
>
> But anyway, the solution to get the form via name is more common.
> But in which file do you found this bug, i searched for it but didn't get a
> result.
>
>
> 2011/1/5 Jonatan Soto <[email protected]>
>
> > Hi Sacha,
> >
> > Yes, I am working with a 2-3 weeks ago trunk version. I've upgraded my
> > custom Ofbiz 2 or 3 days after the jQuery branch was merged.
> >
> > I was wrong, it is not related to freemarker. I just tried what you said
> > and
> > still not working. It takes the first parameter
> > 'jQuery(''checkoutInfoForm'')' as a string. If I use
> > 'document.checkoutInfoForm'
> > works because it takes correctly the DOM object.
> >
> > What do you think?
> >
> > On Wed, Jan 5, 2011 at 1:28 PM, Sascha Rodekamp <sascha.rodekamp.lynx.de
> @
> > googlemail.com> wrote:
> >
> > > Hi Jonatan,
> > > do you working on the latest trunk?
> > >
> > > $('checkoutInfoForm') looks like something related to prototype.
> > >
> > > In the current trunk all these $ calls should be replaced by their
> jQuery
> > > equivalent.
> > >
> > > But in this case your right we use a form call by name.
> > >
> > > Cheers
> > > Sascha
> > >
> > >
> > > 2011/1/5 Jonatan Soto <[email protected]>
> > >
> > > > Hi,
> > > >
> > > > I found links interpreted badly for this page, they don't work.
> Perhaps
> > > > caused by the recent freemarker lib upgrade?
> > > >
> > > > The links are defined like this:
> > > >
> > > > <a href="javascript:submitForm($('checkoutInfoForm'), 'NC', '');"
> > > > class="button">${uiLabelMap.AccountingCreditCard}</a>
> > > >
> > > > I've changed them to:
> > > >
> > > > <a href="javascript:submitForm(document.checkoutInfoForm, 'NC', '');"
> > > > class="button">${uiLabelMap.AccountingCreditCard}</a>
> > > >
> > > > And set the form name properly. I just followed the way that is used
> in
> > > > other pages for the same process. See checkoutoptions.ftl.
> > > >
> > > > Regards,
> > > >
> > > > --
> > > > -----
> > > >
> > > > Jonatan Soto
> > > >
> > >
> > >
> > >
> > > --
> > > Sascha Rodekamp
> > >    Lynx-Consulting GmbH
> > >    Johanniskirchplatz 6
> > >    D-33615 Bielefeld
> > >    http://www.lynx.de
> > >
> >
> >
> >
> > --
> > -----
> >
> > Jonatan Soto
> >
>
>
>
> --
> Sascha Rodekamp
>    Lynx-Consulting GmbH
>    Johanniskirchplatz 6
>    D-33615 Bielefeld
>    http://www.lynx.de
>



-- 
-----

Jonatan Soto

Reply via email to