Global array


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Global array

  1. #1
    Dan Guest

    Re: Global array

    Well, for client sided one, you have to make the array in each page, as
    when one is flushed, all objects are flushed with it, in order to reuse the
    global array for many pages, an easy way is just to remake the array over
    and over for each, by just calling a .js file that will recreate the array
    for each page, if you don't want to do so, you can just use 1 page with the
    global array, and access it from others, now, in this case, the page with
    the global array, MUST be accessible to others, so, it must be loaded/open
    concurrently, a frameset will work, 1 frame for the page with the array, 1
    frame for the other pages using it, a frameset such as rows="1,*", will load
    the array page in the 1pixel frame, not visible though, all the user will
    see is the * frame, so the page loaded in the * frame, can just call the
    array by parent.FRAMEWITHARRAYPAGE.VarName[].


    Dan
    "Rodion" <bcons@narod.ru> wrote in message
    news:3bfd2f4e$1@147.208.176.211...
    >
    > How can I create global array on client side using JavaScript for

    read/write
    > in many pages?




  2. #2
    Rodion Guest

    Global array


    How can I create global array on client side using JavaScript for read/write
    in many pages?

  3. #3
    Rodion Guest

    Re: Global array


    How can I remake the array over and over saving all objects in it?
    I have no frameset on my page (and i don't want)
    Please, help!

    "Dan" <dann@hotpop.com> wrote:
    > Well, for client sided one, you have to make the array in each page,

    as
    >when one is flushed, all objects are flushed with it, in order to reuse

    the
    >global array for many pages, an easy way is just to remake the array over
    >and over for each, by just calling a .js file that will recreate the array
    >for each page, if you don't want to do so, you can just use 1 page with

    the
    >global array, and access it from others, now, in this case, the page with
    >the global array, MUST be accessible to others, so, it must be loaded/open
    >concurrently, a frameset will work, 1 frame for the page with the array,

    1
    >frame for the other pages using it, a frameset such as rows="1,*", will

    load
    >the array page in the 1pixel frame, not visible though, all the user will
    >see is the * frame, so the page loaded in the * frame, can just call the
    >array by parent.FRAMEWITHARRAYPAGE.VarName[].
    >
    >
    >

    Dan
    >"Rodion" <bcons@narod.ru> wrote in message
    >news:3bfd2f4e$1@147.208.176.211...
    >>
    >> How can I create global array on client side using JavaScript for

    >read/write
    >> in many pages?

    >
    >



  4. #4
    Dan Guest

    Re: Global array

    As I said, without an open window/frame to access them, you can't client
    sided, try using a server script so you can store the array info on the
    server and have the incoming page get it off the server, maybe using a SSI
    include or a PHP include.

    Dan
    "Rodion" <bcons@narod.ru> wrote in message news:3bfdc6c8@147.208.176.211...
    >
    > How can I remake the array over and over saving all objects in it?
    > I have no frameset on my page (and i don't want)
    > Please, help!
    >
    > "Dan" <dann@hotpop.com> wrote:
    > > Well, for client sided one, you have to make the array in each page,

    > as
    > >when one is flushed, all objects are flushed with it, in order to reuse

    > the
    > >global array for many pages, an easy way is just to remake the array over
    > >and over for each, by just calling a .js file that will recreate the

    array
    > >for each page, if you don't want to do so, you can just use 1 page with

    > the
    > >global array, and access it from others, now, in this case, the page with
    > >the global array, MUST be accessible to others, so, it must be

    loaded/open
    > >concurrently, a frameset will work, 1 frame for the page with the array,

    > 1
    > >frame for the other pages using it, a frameset such as rows="1,*", will

    > load
    > >the array page in the 1pixel frame, not visible though, all the user will
    > >see is the * frame, so the page loaded in the * frame, can just call the
    > >array by parent.FRAMEWITHARRAYPAGE.VarName[].
    > >
    > >
    > >

    > Dan
    > >"Rodion" <bcons@narod.ru> wrote in message
    > >news:3bfd2f4e$1@147.208.176.211...
    > >>
    > >> How can I create global array on client side using JavaScript for

    > >read/write
    > >> in many pages?

    > >
    > >

    >




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