wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Modify the response Content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Modify the response Content" Watch "Modify the response Content" New topic
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: 61103
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61103
    
  66

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modify the response Content