meetraja23 has asked for the wisdom of the Perl Monks concerning the following question:

Dear perl monks , I have been trying to find a solution to this , but have failed . I have used ajax in my cgi (without the CGI::Ajax module), and when i return text after processing the users choice in a drop down list box , the javascript should show the returned text in a large textarea. I find that the returned text not only contains the required (correct)text , it also has the information sent by the server (the previous form actions before one can get to that page) before that page on which the drop down list box is . How do I prevent this unnecessary information from gettin into my responseText field? Thankin You..
  • Comment on responseText field , does it append server responses

Replies are listed 'Best First'.
Re: responseText field , does it append server responses
by moritz (Cardinal) on Aug 13, 2007 at 14:32 UTC

    You have to do that in the javascript response handler.

    But that's rather hard to tell without seeing some real code.

    If you don't want to do all the dirty work manually, take a look at prototype.