cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yatin Shah <>
Subject XMLForm & JavaScript incompatibility
Date Tue, 22 Apr 2003 21:46:34 GMT
JavaScript incompatibility results when using
XMLForm with a xf:group option or when the
ref argument refers to a name containing the slash character('/').

This becomes an issue if one desires to use javascript features
to access and manipulate the state of input fields.
In the example below, '/activityForm/DBdata/startDate' is an 
invalid JavaScript name.[Although, it's a proper jxpath name!]

Apurva zaveri [1] had a similar issue. Does anyone know
how to get around this problem?


<xf:group ref="/activityForm/DBdata">
    <xf:textbox ref="startTime">
      <xf:caption>Start Time</xf:caption>
      <xf:violations class="error"/>

Resulting HTML

<input name="/activityForm/DBdata/startDate" type="textbox" value="2002-09-23">


Yatin Shah, President             
Kripa Inc.                        
Dayton, New Jersey USA                      phone:  732.329.8303
Developers of real time event driven distributed DB application

View raw message