Forum Moderators: open

Message Too Old, No Replies

Refresh content without losing temporary arrays

Refresh content without losing temporary arrays

         

HackerJack

3:46 pm on Jun 25, 2003 (gmt 0)

10+ Year Member



Hello all,

I'm looking for a way to update the visable content of a page (e.g. TABLE/IFRAME) without losing the data I have stored in an array.

I want to retain the array (refreshing will I believe destroy it) in order to cut down on the number of database transactions I am getting. So far the only way I am aware of doing this is to assign each element individually as a session variable, but I dont want to do that becasue of the amount of data. As far as I know I cant assign an entire array to session variables.

I am also not sure if I use an IFRAME with the array held in the main page how to transfer data across and back.

The array is meant as a temporary storage for a number of tables, thus needs to be queried on writing of the table and also updates on a button click.

Either ASP/VB Script of JavaScript solution would be great.

aspdaddy

10:28 am on Jun 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi HackerJack,

What about posting the array data back to the page.

The can use the url querystring or hidden values in forms to do this.

Its a common way of maintaining state without a database, session variable or text file.