Results 1 to 2 of 2

Thread: I Can't get into the iframe?....any ideas?

  1. #1
    Join Date
    Jul 2013
    Posts
    41
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default I Can't get into the iframe?....any ideas?

    Greetings, Nov 23rd, 2013

    Briefly, I popup a div from index and load a file into it with and iframe src, however afterwards while I can easily reference functions outside the iframe, div combination I cannot reference elements, divs content etc. within the iframes different php page? I have tried the reference to the frame id and then the div id within the different php in a dom combination such as the below, however all has failed! neither of the examples below worked?...any ideas?

    Appreciatively,
    Ted

    Code:
    document.mainiframe.document.getElementById('darray'+i).innerHTML='frame test data - '+i;
    document.mainiframe[0].document.getElementById('darray'+i).innerHTML='frame test data - '+i;
    Last edited by keyboard; 11-24-2013 at 04:39 AM. Reason: Format: Code Tags [code][/code]

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Try:
    frames.mainiframe.document.getElementById('darray'+i).innerHTML='frame test data - '+i;
    The iframe must have name="mainiframe"

Similar Threads

  1. some ideas on a favicon?
    By ModernRevolutions in forum Graphics
    Replies: 2
    Last Post: 07-08-2008, 02:23 AM
  2. Any ideas on How?
    By snic07 in forum PHP
    Replies: 2
    Last Post: 07-06-2007, 02:48 PM
  3. Any ideas?
    By alexjewell in forum PHP
    Replies: 1
    Last Post: 11-30-2006, 02:36 AM
  4. Any Ideas?
    By IanMarlowe in forum JavaScript
    Replies: 2
    Last Post: 07-24-2005, 03:59 AM
  5. Any ideas?
    By ultramagna in forum Submit a DHTML or CSS code
    Replies: 5
    Last Post: 11-19-2004, 04:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •