| Author |
Modify the response Content
|
Praveen Reddy
Ranch Hand
Joined: Jul 12, 2006
Posts: 51
|
|
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
Joined: Jan 10, 2002
Posts: 56224
|
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Praveen Reddy
Ranch Hand
Joined: Jul 12, 2006
Posts: 51
|
|
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
Joined: Jan 10, 2002
Posts: 56224
|
|
|
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?
|
 |
 |
|
|
subject: Modify the response Content
|
|
|