?
Solved

JavaScript - Frame Source (Dynamic)

Posted on 2003-03-28
1
Medium Priority
?
207 Views
Last Modified: 2008-03-06
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.

0
Comment
Question by:wwwmaster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
brisbine earned 300 total points
ID: 8227088
document.body.innerHTML

will return the innerHTML of the window.  Alternatly you can use [framename].document.body.innerHTML
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question