Hope you are getting the values (see the source on your page and find out)
The reason JavaScript doesn't work is that the value of idProveedor is a
string which is not declared. So it should work if you give the same within
quotes.
Try...
<html:radio idName="lista"
onclick="setBusquedaProveedor('${idProveedor}','${strRazonSocial}')"
property="idProveedor" value="idProveedor" />
or
<html:radio idName="lista"
onclick="setBusquedaProveedor(\"${idProveedor}\",\"${strRazonSocial}\")"
property="idProveedor" value="idProveedor" />
HTH
Nitesh
----- Original Message -----
From: "Rafael Taboada" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, June 16, 2005 11:55 AM
Subject: Re: Pass parameter to javascript function
I tried with all the suggestions but it doesn't work:
Does anybody know the problem?
My code is:
<logic:iterate id="lista" name="busquedaproveedorForm"
property="lstResultado">
<html:radio idName="lista"
onclick="setBusquedaProveedor(${idProveedor},${strRazonSocial})"
property="idProveedor" value="idProveedor" />
</logic:iterate>
I try to pass idProveedor and strRazonSocial to a javascript function...
But it doesn't work. I tried with lista.idProveedor but nothing...
Do u know the correct declaration???
Thanks
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]