How do I retrieve and display html/asp/aspx page on different host using jQuery ajax?

Posted by user717236 on Stack Overflow See other posts from Stack Overflow or by user717236
Published on 2012-04-03T16:58:07Z Indexed on 2012/04/03 17:29 UTC
Read the original article Hit count: 237

I have an html page, which is a dynamically created asp/aspx page on http://host2.mydomain.com. I have no control over the html page. I cannot modify it in any such way. I cannot modify this page; so, setting document.domain is out of the question, unfortunately. I want to retrieve and display this page on http://host1.mydomain.com/page1.jsp using Ajax.

FYI: host1 is being served by IIS 7 and Apache Tomcat (for JSP pages). And host2 is using IIS 7 and ASP.

How can I retrieve this page using a Ajax POST request?

Thank you.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery