var Config = {
Windows: ['apple','mangi','lemon']
}
I push an item inside this array in page1, will the array maintain its state in the next screen if i call with the added new value. I want to keep an array or something which keep’s on changing in every screen with its initial set of values.
var Config = {
Windows: ['banana','apple','mangi','lemon']
}
Although I agree with the above posters, you could pass your variables as URL parameters.
This tutorial should be of some assitance: – http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html
As you already have an ‘array’, you could parse the parameters as a JSON object.
…just remember to parse the string as JSON (you can use $.parseJSON in jQuery).
Hope this helps.