C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Is there any way to retrieve frame information from the parent page Posted by praveen_k034 on 27 Feb 2006 at 11:11 AM
Hello,

I have a web application and want to get the HTML code from a page in this app. But, the code generated from "File->Edit with Notepad" is different from the one that is generated by right click on any part of the page and selecting view source. With the former containing HTML frame declarations and the latter containing Java Script.

I am using the HTMLDocumentClass object to retrieve the innerText and innerHTML values. the innerHTML property shows the below content which is not required.

Code from "File->Edit with Notepad".
------------------------------------
<HTML>
<HEAD>
<TITLE>SURF Web Reports</TITLE>
</HEAD>
<FRAMESET rows="54,86%" frameborder="NO" border="0" framespacing="0">
<FRAME name="frameTop" src="banner.htm" scrolling="no" frameborder="no">
<FRAMESET rows="100%,*" border="0" frameSpacing="0" frameBorder="0">
<FRAME name="frameContainer" id="frameContainer" src="Main.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto">
</FRAMESET>
</FRAMESET>
</HTML>
From the code we see that there are many frames ,these frames contain sub-frames.
Is there any way to retrieve frame information (Javascript) from the parent page.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.