I don't have javascript errors, the problem is %=tmpIndex% can't be
translated into 0,1,2,.
in javascript, only the String%=tmpIndex%.
Adam Hardy [EMAIL PROTECTED]
08/07/03 04:32 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL
HI Julie
Try putting single quotes around your variable ...
Eg:
nested:select property=projectCodeId onchange= projectChange('y%=tmpIndex%')
regards
Rohit
Adam
[EMAIL PROTECTED] wrote:
Hi All,
Can anyone suggest how to pass a jsp variable to a javascript function
correctly? It is in a
Hi All,
Can anyone suggest how to pass a jsp variable to a javascript function
correctly? It is in a nested:iterate block that has an indexId=tmpIndex.
what I would like to do is to have the 'y%=tmpIndex%' variable pass
into my JavaScript function.It seems like the server side %=tmpIndex%
Thank you very very much!! It works perfect !!!
Julie
Steve Armstrong [EMAIL PROTECTED]
08/07/03 10:25 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: how to pass a jsp variable to a
Hi Julie,
what do you get as a result of that iterate? It looks correct. Do you
have javascript errors?
Adam
[EMAIL PROTECTED] wrote:
Hi All,
Can anyone suggest how to pass a jsp variable to a javascript function
correctly? It is in a nested:iterate block that has an indexId=tmpIndex.
what I
Howdy,
There are definitely a number of funky things in your code example. I'm not
exactly sure what you're trying to do since your onchange attribute is
calling a JavaScript function called projectChange which I don't see
anywhere, but here are a couple of things to look out for:
1. I don't
Do this: bean:write name=tmpIndex /
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. August 2003 23:30
An: Struts Users Mailing List
Betreff: Re: how to pass a jsp variable to a javascript function
I don't have javascript errors, the
7 matches
Mail list logo