Jump to content
php.lv forumi

JavaScript Cookies un masīvs


Recommended Posts

Šādi neiet?


var myArray = {
'a': {
	a1: 'foo',
	a2: 'bar'
'b': {
	b1: 'foo',
	b2: 'bar',
	b3: 'baz'

$.cookie( 'myCookie', myArray );


Tieši tā arī mēģināju, bet nekā!

Kad to cookie masīvu ieliec funkcijā, - manaFunkcija($.cookie('myCookie')); - tad nekas nestrādā, savukārt, ja ieliec myArray, tad viss aiziet!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...