This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help for AJAX with struts2.0

 
Gobi v
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello folks..

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
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain your problem in more detail? Can you able to make ajax call? or where exactly you have issues?
 
Gobi v
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can't you use javascript DOM to populate the table with the values entered in modal popup.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic