Results 1 to 2 of 2

Thread: DHTML Window widget (v1.02)

  1. #1
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget (v1.02)

    1) Script Title: DHTML Window widget (v1.02)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: Not a problem with the script itself. Just one thing I need to do with it.

    I have a function called from MainPage.html, which dynamically creates tables and populates them with strings from variables when the page loads. The arrangement looks like this:

    <body>
    <div id="insertarea">
    <div><script type="text/javascript">insertThings(data1[2][0])</script></div>
    <div><script type="text/javascript">insertThings(data5[8][3])</script></div>
    </div>
    </body>

    Now, rather than populating MainPage.html, I would like the above strings to populate ChildPage.html that loads in the DHTML Window widget (I am using the iframe version). Hence, Can someone help me with a sample function that would:

    1. access ChildPage.html from the MainPage.html (or MainPage.html from the ChildPage.html), when ChildPage.html loads, and

    2. execute the two functions/strings above so as to have them populate an empty container, such as a div with id="receivedata", on ChildPage.html, when the latter loads in the Window widget.

    I need to use a single Childpage.html that can be invoked by and loaded from any of the MainPages, if necesary; but ChildPage.html must have an empty container that can be fetched from data strings that are specific to the particular MainPage.html that loads it. Therefore, the above two data-fetching functions/strings must reside on their associated MainPage.html, or somewhere else, but not on the ChildPage.html.


    A sample function would be hugely appreciated. Sorry for the length of this post.

    JeanNg

  2. #2
    Join Date
    Apr 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Never mind this post. Using the div option of the widget turned out to be an excitingly MUCH simpler approach.

    Thanks
    JeanNg.

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
  •