Posted on 2005-05-16
this may be a tough one, but here goes. I am using the XMLHTTPRequest object in IE/Netscape. We purchased some controls that we really love but cant seem to get them to work with the XMLHTTPRequest object. The Control is the Webcombo by Intersoftpt.com. I am Using a GET method of the XMLHTTPRequest object. I can get all of the ASPX page but the Webcombo returns with backslashes escaping double quotes they use in their client side calls. They have no solution as they do not support the XMLHTTPRequest object. as an example here is what the return is( comprised of XML structured data):
the problem is the \". I have tried to use a Regular Expression replace i.e. str.replace('\\"/g','\"') but to no avail as it seems to replace everything as it was when i started. i can replace everything with a single quote, but that doesnt help much where the client side methods are concerned because of the formatting of the client side methods of the control.
How can i force the XMLHTTPRequest object to ignore double quotes or use Regular Expression replace? to replace all occurences of a backslash and a double quote with just a double quote?