Re: struts2 select onchange to trigger ajax call

2008-10-24 Thread Sudheendra.N.Singh
Hi, I have a dropdown on the page and display a button. Now depending on which value I select in the dropdown I want to change the name of the button. Any idea how can I do it? Following is the code and it is in the same form.

Re: struts2 select onchange to trigger ajax call

2008-10-08 Thread dxa
Thank you so much! This saved me hours of work! Markus Doring wrote: > > Thanks Dave, that works! > > I finally also found a working example here: > http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html > > You can actually get rid of any javascript functions and just pu

Re: struts2 select onchange to trigger ajax call

2008-08-08 Thread Markus Doring
A little addition to my last post... It all seemed to work fine, but some of my html content that got back had | pipe symbols in image urls and Dojo did not seem to like that. My AJAX call was brining back statistics images based on Google Charts. And those URLs use | as dataset separators for la

Re: struts2 select onchange to trigger ajax call

2008-08-08 Thread Markus Doring
Thanks Dave, that works! I finally also found a working example here: http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html You can actually get rid of any javascript functions and just publish the topic in the onchange and use die struts div tag to do the rest:

Re: struts2 select onchange to trigger ajax call

2008-08-07 Thread Dave Newton
Did you try publishing a topic onchange and having the div have that topic in its listenTopics? Dave --- On Thu, 8/7/08, Markus Doring <[EMAIL PROTECTED]> wrote: > From: Markus Doring <[EMAIL PROTECTED]> > Subject: struts2 select onchange to trigger ajax call > To: user@struts.apache.org > Dat