Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify the response Content

 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using Yahoo User Interface
my flow is when i click on link the YUI call goes to Action class and gets the response HTML Content.
Now i need to modify the response Html Content, In my response content i am having some radio buttons with id's, i need to compare this id's and mark radio buttons as checked.

Can any please suggest me how to achieve this.

Thanks
Praveen
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you obtaining the response content? Via Ajax, or in the servlet? Once you get the string containing the response, it should be easy to manipulate.
 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Struts Action class i will get Dynamic response to the java script through java script i need to modify the Content

let us Assume in my "o.responseText" i am having the below content now please suggest me how can i read and mark checked for radio button "radio-1-2"



Thanks
Praveen
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you mentioned responseText, may I assume that the action is being invoked as an Ajax request? If so, why not re-process the response in the action prior to sending it to the client?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic