I need suggestions for a requirement in my project! . I have a table in struts2.0. I have modal window opening on clicking of a button in the page. I want to update the table dynamicaly without loading the entire page using AJAX. i know its possible in strust2.0 but i am tired of finding the solutions. Kindly help me to do this
Thanks in advace,,
vishwa venkat
Ranch Hand
Joined: Nov 22, 2003
Posts: 185
posted
0
Can you explain your problem in more detail? Can you able to make ajax call? or where exactly you have issues?
Gobi v
Greenhorn
Joined: Oct 13, 2006
Posts: 7
posted
0
Hi..
we are using conventional ajax call for generating the response. I have an table. I have to refresh the table content without loading the page.
a button which invokes the dhtml modal window to enter the details. After closing the modal window the data entered in the modal window should be populated in the table without reloading the entire page.
I constructed the table using s:iterator tag provided with div tag. I constructed a response such a way that replacing the table contents.
facing problem with reloading the content.
vishwa venkat
Ranch Hand
Joined: Nov 22, 2003
Posts: 185
posted
0
can't you use javascript DOM to populate the table with the values entered in modal popup.
*What* problem are you facing reloading the content? If you have a reference to the parent window, you have a reference to the parent window's DOM. If you have the parent window's DOM you can manipulate it arbitrarily, including adding/modifying its content.