cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From werner <wer...@gefi.at>
Subject Re: Multiple forms per page
Date Tue, 13 Dec 2005 17:23:49 GMT
I don't think this is a browser problem. Does your form template contain
the state widget?

<fi:state>
    <ft:widget id="tab-state" />
</fi:state>

I don't know it the state-widget is really obligatory, but there is at
least a javascript error if it does not exist.

Werner

Am Dienstag, den 13.12.2005, 16:24 +0100 schrieb Alessandro Vincelli:

> I have a problem in cocoon 2.1.8 with a tab form...
> 
> in Explorer no problem
> 
> in Firefox this error:
> Error: document.getElementById(state) has no properties
> Source File: ... /js/forms-lib.js Line: 180
> 
> in forms-libs.js
> 
> 
> function forms_showTab(tabgroup, idx, length, state) {
>      // Change state value
>      if (state.length > 0) {
>          document.getElementById(state).value = idx;
>      }
> ....
> 
> 
> Can you help me?
> 
> thanks in advance, Alessandro
> 
> 
> 
> 
> -------------------------------
> Alessandro Vincelli
> W4B - web for business s.r.l.
> Firenze
> via Pellicceria 10 - 50123
> E-mail: a.vincelli@w4b.it
> tel: 055-2654270
> 
> 
> Sylvain Wallez ha scritto:
> > werner wrote:
> > 
> >> Yes, it's true. The tabs don't work when you have another form on the
> >> page. This problem can be solved if you change the line in forms-lib.js:
> >>
> >> document.forms[0][state].value = idx;
> >>
> >> to
> >>
> >> document.getElementById(state).value=idx;
> >>
> >> Then there is another change in the xsl necessary, because the tab-state
> >> widget is not generated with an id attribute (only with a name). In
> >> forms-page-styling.xsl look for the line
> >>
> >>  <input type="hidden" name="{$state-widget}"  value="{$active}"/>
> >>
> >> and add the id attribute
> >>
> >>  <input type="hidden" name="{$state-widget}" id="{$state-widget}"
> >> value="{$active}"/>
> >>
> >> Then it works. I don't know it this is a hack or not. As far as I have 
> >> seen, this problem exists in 2.1.7 and 2.1.8 (without
> >> Ajax)
> >>   
> > 
> > 
> > It will be in 2.1.8 :-)
> > 
> > Thanks for spotting this!
> > 
> > Sylvain
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

Fischer & Masik OEG
GEFi Informationstechnik und Datenservice
Reisenbauerring 5/1/12
A-2351 Wiener Neudorf

Tel: 02236 / 304 224
Fax: 02236 / 304 278
Mobil: 0676 528 97 57

Internet: http://www.gefi.at
e-mail:
persönlich: werner@gefi.at
allgemein: office@gefi.at


*************************
Confidentiality Notice
*************************
The information contained in this Email, and any attachments, is
intended for the named recipients only. It may contain confidential
and/or privileged information. If you are not the intended
recipient, you must not copy, distribute, or take any action in
reliance on it. Any views expressed do not necessarily reflect the
views of the company.

If you receive this Email by mistake, please advise the sender by
using the reply facility in your Email software and then delete it.




Mime
View raw message