Using onclick within an iterate tag
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lawrence_Maturo
Posted On:   Friday, January 4, 2002 09:20 AM

I am trying to use the onclick handler within the iterate tag to call a javascript funtion thusly: )"/> The javascript function is: function setValue(target) { document.forms[0].id.value=target; }; ]]>]]> My problem is that I can't find any quoting convention that works for this. I've tried everything I can think of. I am willing to believe that my approach is all wrong, and that there is a better way of approaching this problem.    More>>


I am trying to use the onclick handler within the iterate tag to call a javascript funtion thusly:









)"/>



The javascript function is:




My problem is that I can't find any quoting convention that works for this. I've tried everything I can think of. I am willing to believe that my approach is all wrong, and that there is a better way of approaching this problem.

   <<Less

Re: Using onclick within an iterate tag

Posted By:   Ted_Husted  
Posted On:   Sunday, January 6, 2002 07:57 AM

You might want to think about extended your editButton tag
so that it can look to a bean for the onclick script, perhaps
something like onclickName and onclickProperty, and have it
refer to a bean and a property on that bean.


If that actually worked out, you might want to consider
donating the code to Struts, since it sounds useful to me.


HTH -Ted

About | Sitemap | Contact