Skip to posts
  • About

Win Web Hosting

Web Hosting Information
  • Home
  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

How do I access data in a Web Browser FRAME?

October 27, 2011 James 2 comments
Windows Web Hosting Access, browser, data, FRAME

Comments

Leave a comment Trackback
  • Written by Mark aka jack573 about 7 months ago.

    I have not tried anything like this, but my guess would be something like this.

    From the web age that is holding the framesets, you would do this:
    Select the page that is in the main frame.
    Select the element from this page you want to get the info from or put data into.

    If you know about the DOM, you will need to use that. If you don’t know about the DOM, you will need to learn. Here is a tutorial on the DOM.
    http://www.w3schools.com/htmldom/default.asp

    As I said, I have not tried it, so I do not know if it will even work.

    Good luck with it.

  • Written by mahD about 7 months ago.

    yesterday, I had exactly same problem, I wanted to read some data which is in my iframe, so I understood that is a way for do that, for exampleto read body data in this html code and write in to test field :

    we can write this javascript code:

    function read() {
    var myIFrame = document.getElementById(“url”);
    var content =myIFrame.contentWindow;
    document.getElementById(“test”).innerHTML = content.document.body.innerHTML;
    }

    Note1: you can read some special data with ID for example content.document.getElementById(“text1″).innerHTML;

    Note2: the contentWindow work on FireFox and google chrome, but for use in IE you should use of contentDocument

    Note3: I am not sure that this way work on frame too, but if it doesn’t work, you can use iframe in place of frame

    this link can be usefull too: http://roneiv.wordpress.com/2008/01/18/get-the-content-of-an-iframe-in-javascript-crossbrowser-solution-for-both-ie-and-firefox/

Comment Pages:

Leave a Comment

Cancel Reply

You must be logged in to post a comment.

RSS

Win Web Hosting Home Page

Cheap Windows Hosting

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

  • May 2012 (62)
  • April 2012 (81)
  • March 2012 (82)
  • February 2012 (79)
  • January 2012 (92)
  • December 2011 (163)
  • November 2011 (205)
  • October 2011 (339)
  • September 2011 (367)
  • August 2011 (367)
  • July 2011 (322)
  • June 2011 (338)
  • May 2011 (358)
  • April 2011 (94)
  • March 2011 (40)
  • February 2011 (36)
  • January 2011 (41)
  • December 2010 (30)
  • November 2010 (40)
  • October 2010 (41)
  • September 2010 (52)
  • August 2010 (150)
  • July 2010 (165)
  • June 2010 (159)
  • May 2010 (238)
  • April 2010 (248)
  • March 2010 (202)
  • February 2010 (576)

Recent Posts

  • Developing Silverlight MediaPlayer (3/3)
  • MVC TUTORIAL PART 7 : Adding Supplier Details Link
  • dot net course in pune. C# training in pune. asp.net training in pune
  • How To Get Black Silverlight
  • Hosting Classic ASP Applications on IIS 7.5

Tags

.NET 2010 about AJAX Application Applications ASP.NET best Business cheap cloud Company Computing Control Create data Dedicated Development Free from help Host hosting India Introduction Linux Microsoft more need Page Part private Server servers service Services Silverlight Site Software Source Tutorial Using Video website Windows

Categories

  • ASP.NET
  • Cloud Hosting
  • Dedicated Servers
  • Linux Web Hosting
  • Microsoft AJAX
  • Microsoft Siverlight
  • Windows Web Hosting

Meta

  • Register
  • Log in
  • Valid XHTML
Powered by WordPress Web Design by SRS Solutions © 2012 Win Web Hosting