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