-
Generated page from XMLHTTP Request is not used by Save As and Send Page by Email
I'm developing a intranet solution for my company based on XMLHTTP. I use
XMLHTTP to send a request to the web server instead of using the HTML Form
because I want to modify the returned page (responseText) on the client side
before displaying it in IE5.
var xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP");
xmlhttp.open("GET", strURL, false);
xmlhttp.send("");
strDocText = xmlhttp.responseText;
strDocText = strDocText.replace ("Service Desk Lite", "ServiceDesk");
strDocText = strDocText.replace ("Ad-hoc Download - Transaction data", "Custom
Data Query");
document.write (strDocText);
After displaying returned responseText in IE5, I click on File -> Save As
or File -> Send -> Page by Email. What I save or send is the original page
(the page that submits the request), not the returned page (responseText).
However, click View -> Source displays the responseText. I even tried to
clear the document (document.clear), reload (location.reload) and open a
new window for writing the the responseText, but what I got when save as
a file or send by email is the original page. Any suggestion or workaround
on this problem would be greatly appreciated.
Thanks in advance,
Phong Tran
Luminate
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks