+ Reply to Thread
Results 1 to 2 of 2

Thread: What is the best way to send Javascript arrays between webpages?

  1. #1
    james is offline Junior Member james is on a distinguished road
    Join Date
    Jun 2003
    Posts
    22

    Default What is the best way to send Javascript arrays between webpages?

    I'd like to get data from a webpage and store it in a javascript array, but still have access when a user navigates to a new page. What's the best way to do this--setting a cookie, serialization, or?

  2. #2
    Matt Flaschen is offline Junior Member Matt Flaschen is on a distinguished road
    Join Date
    Feb 2010
    Posts
    1

    Default

    It depends how much data you're storing. Serializing to a cookie is a good option if there's not much data. You will need to make sure cookies are enabled Take a look at eval and the toSource() method of the Array object. You can also store data in the url, in query strings or anchors.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 04-10-2010, 10:15 AM
  2. Replies: 1
    Last Post: 03-10-2010, 04:49 AM
  3. Replies: 0
    Last Post: 01-20-2010, 11:59 PM
  4. How do you program arrays in javascript?
    By Nicole L in forum Javascript
    Replies: 0
    Last Post: 01-06-2010, 08:56 PM
  5. Replies: 0
    Last Post: 12-10-2009, 01:53 AM

Posting Permissions

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