How much data can a javascript global variable hold??
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-03-16T18:18:13Z
Indexed on
2010/03/16
18:21 UTC
Read the original article
Hit count: 189
AJAX
Hi,
To enable a go back function with an ajax div i have create these simple functions and i was wondering how much data a .js global variable can hold??
var dataAfterSearch; //global variable which holds our search results
function goBackAfterSearch() {
/**
* function which displays the previous state
*
**/
$.ajaxSetup ({
cache: false
});
//alert("Previous Search" +dataAfterSearch);
$('#result').html(dataAfterSearch);
paginateIt();
}
function setDataAfterSearch(data)
{
/**
* function to set the global dataAfterSearch
*
**/
dataAfterSearch = data;
}
kind regards
© Stack Overflow or respective owner