Re: updating a DIV with ajax submit

2007-06-16 Thread Mansour
I solved the problem. I don't know why but it resolved. Never mind. Here the old code: and task.jsp contains this: Service Name Unit Count cost Date Completed ... For some reason this was not updating th

Re: updating a DIV with ajax submit

2007-06-16 Thread Martin Gainty
ve received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message ----- From: "Mansour" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent:

Re: updating a DIV with ajax submit

2007-06-16 Thread Musachy Barroso
Well, that's all Struts will do, insert the html in the target element musachy On 6/15/07, Mansour <[EMAIL PROTECTED]> wrote: Jeff Amiel wrote: > I assume the value of %{ajaxSubmit} is a struts action...? > And you are sure it is actually putting NEW content in the div after > the image is

Re: updating a DIV with ajax submit

2007-06-15 Thread Mansour
Jeff Amiel wrote: I assume the value of %{ajaxSubmit} is a struts action...? And you are sure it is actually putting NEW content in the div after the image is clicked on? Yes, the value of %{ajaxSubmit} is an action. And yes, the html is inserted in DIV. I checked it with FF DOM i

Re: updating a DIV with ajax submit

2007-06-15 Thread Jeff Amiel
I assume the value of %{ajaxSubmit} is a struts action...? And you are sure it is actually putting NEW content in the div after the image is clicked on? On 6/15/07, Mansour <[EMAIL PROTECTED]> wrote: I can see expected out put coming back. And when I view the page source it's even there in t

Re: updating a DIV with ajax submit

2007-06-15 Thread Mansour
I can see expected out put coming back. And when I view the page source it's even there in the right place but not rendered on the browser! On both FF and IE Mansour wrote: Seriously, no one can answer this one? OK, the DIV is not updating at all now. Do i need to use JS to manually set

Re: updating a DIV with ajax submit

2007-06-15 Thread Mansour
Seriously, no one can answer this one? OK, the DIV is not updating at all now. Do i need to use JS to manually set the content of the DIV ? Shouldn't it update auto magically? Mansour wrote: I am able to submit, and I can see the results back. However, the results are not inserted into the DI

updating a DIV with ajax submit

2007-06-12 Thread Mansour
I am able to submit, and I can see the results back. However, the results are not inserted into the DIV and replacing the old contents. It's inserted just before the old contents. href="%{ajaxSubmit}" theme="ajax" notifyTopics="/updateOrSave" targets="tasksDIV" /> The new resu