Results 1 to 2 of 2

Thread: Passing array in frames

  1. #1
    Join Date
    Apr 2011

    Passing array in frames

    I have a frameset (Frameset) with three frames: fraMain, fraNav, fraTitle. My opening page in fraMain(Page1) has six images. The images are precached and loaded into an array, which is passed to a variable in the Frameset. Frameset's variable receives the array just fine and displays in my debugger with Value = {count=6} and Type = DispHTMLElementCollection.

    When the user clicks on an image in Page1, a new page (Page2) opens with the clicked image. I need to pass the array from Frameset to Page2. However, as soon as Page2 loads, Frameset's variable loses its elements and becomes an object, i.e., Value = {...} and Type = Object.

    The current code in Page2 to get the array from Frameset is:

    function getImagesArray() {
    arr = top.arrImages;

    "arr" is a global variable in Page2.

    How do I get the array into Page2 from Frameset? I'm sure this is something simple (my worst problems always are!), but I've been pulling my hair out over it.

    Any help is appreciated. Thanks.


  2. #2
    Join Date
    Apr 2011
    Okinawa, Japan
    Post your code and lets take a look. Are you making a photo album viewer of sorts?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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