struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon.Ridgway" <Jon.Ridg...@upco.co.uk>
Subject RE: Imbeded JavaScript
Date Fri, 06 Sep 2002 08:54:58 GMT
Hi Tib,

Many thanks for this little gem. Didn't quite work, couldn't get the
imbedded quotes to parse in WLS 6.1, but found a workaround. 

Thanks again.

Jon Ridgway


-----Original Message-----
From: Gemes Tibor [mailto:gemes@regens.hu] 
Sent: 05 September 2002 10:19
To: Struts Users Mailing List
Subject: Re: Imbeded JavaScript

2002. szeptember 5. 10:38 dátummal Jon.Ridgway ezt írtad:
> Hi All,
> <html:select property="PODStatus" style="width: 48px"
> onchange="sub('load.pod.popup', '<%=index%>')">
>             <html:options collection="dsList"
> property="deliveryStatusCode"/>
>           </html:select>

Because rt-expr must start with '<%=' and end with '%>'
Try this:

 <html:select property='PODStatus' style='width: 48px'
 onchange='<%= "sub('load.pod.popup', '" + index+ "') %>' >
             <html:options collection="dsList"
 property="deliveryStatusCode"/>
           </html:select>

Hth,

Tib

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message