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


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??

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    1

    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()//


    Code:
    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"//
    Code:
    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
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Split into its own thread
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 0
    Last Post: 02-09-2008, 06: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, 08:51 AM
  3. Replies: 2
    Last Post: 06-13-2001, 11:54 AM
  4. Replies: 2
    Last Post: 03-24-2001, 09:39 AM
  5. IFrame Blanks Parent Page forms
    By Michael Murray in forum Web
    Replies: 0
    Last Post: 12-12-2000, 09: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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