DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Parent and Iframe Issue! both R on the same domain??

  1. #1
    Join Date
    Jan 2009

    Parent and Iframe Issue! both R on the same domain??

    From what I Know Both files must reside on the same domain "DONE!'.
    Parent --- textbox1.value= ""
    Iframe --- textbox1.value= ""
    When IFrame loads a my button "called Contents " appears ... I click it calls calls Function thecontents() <!--

    this is the iframe function-->
    <button........ Contents </button> //calls Function thecontents()//

    headerList =document.body.innerHTML
    textbox1.value = "<pre>" + headerList + "</pre>";
    Now Iframe textbox1.value= 'NEW DATA in here from contents Iframes innerhtml'

    is filled with the data I need...... //I have the data I need//
    // now lets send the data from the Iframe's text1.value to the parent textbox1//

    //"Error at this point"//
    X =document.getElementById('textbox1').value ['myIframe'].document.getElementById('textbox1').value
    alert(x)  //"Error at this point"//
    x= Iframes Textbox1.value
    parents textbox1.value  x ; // should show X but it does'nt//
    My Files test1.htm and test2.htm are on my local computer for testing
    I did test in my local webserver worked ok until I try to send the data to
    the parent...

    test1.htm the parent
    test2.htm the Iframe inside parent

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Split into its own thread

Similar Threads

  1. Replies: 0
    Last Post: 02-09-2008, 07:02 PM
  2. Embed html page in aspx page(Cross Domain Security)
    By prashant2010 in forum ASP.NET
    Replies: 0
    Last Post: 02-13-2007, 09:51 AM
  3. Replies: 2
    Last Post: 06-13-2001, 11:54 AM
  4. Replies: 2
    Last Post: 03-24-2001, 10:39 AM
  5. IFrame Blanks Parent Page forms
    By Michael Murray in forum Web
    Replies: 0
    Last Post: 12-12-2000, 10:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center