Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Laurie Harper
Again, though, bear in mind that the tag will be evaluated on the server during page generation whereas the Javascript will be executed later, on the client, after the page is delivered. There's no way to 'interact with the action stack in Javascript', since the action stack only exists durin

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Musachy Barroso
// call the function passing the index myFunction( ) just make sure the "indexValue" is available when you use it. musachy On 4/30/07, Roger Varley <[EMAIL PROTECTED]> wrote: > Without seeing the error and the JSP code that generated it, it's hard > to

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-30 Thread Roger Varley
Without seeing the error and the JSP code that generated it, it's hard to tell you what's wrong. However, remember that Javascript runs on the client, after the page has been generated. View the page source to see what the syntax error is. In this case, it's probably the lack of quotes around the

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-27 Thread Laurie Harper
Roger Varley wrote: Hi Within a tag I have the following statement (because status seems to disappear when the iterator exits) and I use the expression %{#indexValue} within other struts s: tags without a problem. I now need to pass this value to a javascript function i.e onclick="enableField

Re: [S2] Newbie Passing S2 variables to javascript functions

2007-04-27 Thread Felipe Rodrigues
, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Newbie-Passing-S2-variables-to-javascript-functions-tf3658057.html#a1085 Sent from the Struts - User mailing list archive at Nabble.c

[S2] Newbie Passing S2 variables to javascript functions

2007-04-27 Thread Roger Varley
Hi Within a tag I have the following statement (because status seems to disappear when the iterator exits) and I use the expression %{#indexValue} within other struts s: tags without a problem. I now need to pass this value to a javascript function i.e onclick="enableField(%{#indexValue})" but