Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Andigo #1
Maintaining JavaScript array values
Is it possible to maintain the values in an array when my users jump from one
page to another, and then return to the first page?
I've created a "portfolio" page with a grid of thumbnails. Click a thumbnail
and, along with the full-size image appearing, the thumbnail changes color to
denote that the image has been viewed. The function I've written works, but I
can't figure out how to maintain the values in the array I've set up and test
against to determine whether the checked or unchecked thumbnail should be
displayed.
I think the array is reinitializing each time a visitor returns to the page.
Is there a way around this?
TIA for any help,
Andrew
Andigo Guest
-
Passing JavaScript values
I've created a JavaScript that totals a column of numbers input by a site visitor. Is there a way to bring that information with me when I jump to a... -
insert values in an array
Hy all, I like to insert a value in an array but only want to renumber the ones after the inserted value like this; situation 1)... -
Deleting same values from an array
Hello, I have an array called $stems that has a bunch of numbers in it like 2, 5, 4, 4, 2, 6, 8. What I want to do is delete a section of the... -
asp: values in array not in order??
I have a form on an asp page and am trying to write the code to place the values of all checkboxes that have been selected, into an array. The... -
Random Array values
Hi, I have an array like so. <?php $movies = array(); $movies = "blue.html"; $movies = "red.html"; $movies = "green.html"; $movies =... -
rob :: digitalburn #2
Re: Maintaining JavaScript array values
You're right in saying that the array reinitalises each time. In fact, I
don't think it's possible to save anything JavaScript between page views
natively.
However, all is not lost. It would be simple to do using cookies set in
JavaScript, and slightly less simple but still doable (if you don't fancy
cookies) to pass the info in the URL using a server side scripting language
such as PHP.
Rob
Andigo wrote:> Is it possible to maintain the values in an array when my users jump
> from one page to another, and then return to the first page?
>
> I've created a "portfolio" page with a grid of thumbnails. Click a
> thumbnail and, along with the full-size image appearing, the
> thumbnail changes color to denote that the image has been viewed.
> The function I've written works, but I can't figure out how to
> maintain the values in the array I've set up and test against to
> determine whether the checked or unchecked thumbnail should be
> displayed.
>
> I think the array is reinitializing each time a visitor returns to
> the page. Is there a way around this?
>
> TIA for any help,
>
> Andrew
rob :: digitalburn Guest



Reply With Quote

