[jQuery] Re: jQuery sessions (persisting data across pages)

2009-04-15 Thread gibble
DOM to pass info, but I don't have any specifics > on it and whether it works on all browsers or not. > > On Apr 15, 5:01 am, gibble wrote: >> Personally, I find the .data() function in jQuery very useful. I can keep >> my >> html clean, and just attach data to the ele

[jQuery] jQuery sessions (persisting data across pages)

2009-04-15 Thread gibble
Personally, I find the .data() function in jQuery very useful. I can keep my html clean, and just attach data to the elements. What I'm finding myself needing though, is a way to persist some data client side across pages. Unfortunately, it wasn't as simple as $(window).data('key', 'value') As

[jQuery] Selector broken with 1.3.1 vs 1.2.6

2009-02-13 Thread gibble
I was using 1.2.6 with the following line which worked perfectly. row.find("select." + name + " option[value='" + value + "']").attr('selected', true); Now with 1.3.1 a javascript error is happening A Runtime Error has occurred. Do you wish to Debug? Line: 4723 Error: Exception thrown and not

[jQuery] Re: storing objects in jQuery data

2009-01-07 Thread gibble
I actually found this while waiting for this message to be approved to the list, what I ended up using was a slight modification so it does a deep clone/copy var aCopy = jQuery.extend(true, {}, $('#something option:first').data ('value')); dave.methvin wrote: > > >> Is there a way to get jus

[jQuery] storing objects in jQuery data

2009-01-06 Thread gibble
I am storing js objects using jQuery.data eg. var newDeployment = { server: server, application: application, references: references }; $('select#something option:first').data('value', newDeployment); The problem is that I then