Posted on 2003-03-28
Guys, I am going nutty trying to figure this out!!!
I have to capture an HTML 'snapshot' of a dynamic page and then save the
source to a static HTML page. The reason is that I want to give my users
a 'preview' of what the static page will be and allow them the option to
keep it, or refresh and try again with the potential of different
results (because it is dynamic).
What I'm trying to do now, is open the page in a different frame, and if
the user chooses to keep the page, I want to retrieve the HTML from that
frame. However, I have not found an object in the DOM that will return a
document's HTML source.
Any Ideas? I'm open to other solutions. Keep in mind that I can not do
another HTTP call because that may load a different page, as it is
dynamic. Also, If possible, I'd rather not make changes to this dynamic page.