Gihan Lasita
Gihan Lasita

Reputation: 3053

how to pass json data to page to page?

I have a Extjs data store in home page and im getting data from store like this

var jsonData = Ext.encode(Ext.pluck(Ext.getStore('cart_store').data.items, 'data'));

which generate json data like

[{"id":24,"item_code":"TVSIV(B)"},{"id":25,"item_code":"TVSIV(A)"}]

any idea how to pass this data to another page like when you do a redirect?

Regards

Upvotes: 0

Views: 468

Answers (2)

BassT
BassT

Reputation: 849

Assuming your server supports PHP, you could also use a PHP Session.

http://www.php.net/manual/en/reserved.variables.session.php

Upvotes: 2

Lloyd
Lloyd

Reputation: 29668

You could use HTML5 local storage for this:

https://developer.mozilla.org/en/DOM/Storage

Most modern browsers including IE7+ support it.

Upvotes: 1

Related Questions