[jQuery] Help: Iterate through unknown number of elements, apply function

2010-02-23 Thread xstaceyamayx
Hey there, newbie here... Still getting a grasp on jQuery, so I'm probably overthinking or extra- typing... Anyway, I have 2 select boxes. I can populate SelectA with items from a database, move the items from selectA to selectB and back again by clicking add and remove... BASIC CODE (HTML): div

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread Peter Edwards
In your example, you have two calls to $('#elements').sortable(). The second one has the update event added, but the first (the one which creates the sortable) doesn't. If you add the update handler to the first call, it works OK. on 23/02/2010 08:26 rafald said:: Hi , please check this:

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi Peter, Indeed! It works ;-) THANKS! It was enough to remove line with $(#elements).sortable(); So, what is the right place to put: $(#elements).sortable(); ? in my example: the first place was outside $(document).ready(function() the second place (where I added event) was inside $

[jQuery] Send XML to the server gets Type Mismatch error in IE, though works fine with Firefox

2010-02-23 Thread rafald
Hi When I checked the google forum for jQuery I was told its not monitored anymore. Instead of this another forum is proposed. So few days ago I created a post here: http://forum.jquery.com/topic/send-xml-to-the-server-gets-type-mismatch-error-in-ie-though-works-fine-with-firefox This is for the

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread Peter Edwards
No problem, $(document).ready(function(){ }); and $(function(){ }); are the same - both will run whatever you have in them when the DOM is ready - the second is just a kind of shorthand for the (much easier to read) first. Docs: .ready() http://api.jquery.com/ready/ $(callback)

[jQuery] JQPRINT - Need help!!

2010-02-23 Thread Erik
has anyone used JQPRINT? I know it looks really simple, but how do you call the function with a link? Erik

[jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!!!!!

2010-02-23 Thread Erik
Use the ROUNDIES script for IE7, which is really easy. I personally don't care for IE8 so I convert IE8 to work like IE7 by placing the following tag under the head: meta content=IE=7 http-equiv=X-UA-Compatible

[jQuery] Problem with load event

2010-02-23 Thread Hubbitus
I have simple document: script $(document).load(function(){ alert('Document loaded')} ); $(document).ready(function(){ alert('Document ready')} ); $(document).live('load', function(){ alert('Document loaded (live)')} ); /script But from 3 attached events on page load fired only one -

Re: [jQuery] Help: Iterate through unknown number of elements, apply function

2010-02-23 Thread Nathan Klatt
On Tue, Feb 23, 2010 at 2:20 AM, xstaceyamayx sta...@staceymay.com wrote: Anyway, I have 2 select boxes. I can populate SelectA with items from a database, move the items from selectA to selectB and back again by clicking add and remove... Change your HTML to look something like this: div

[jQuery] Selection from a list should rewrite the page.

2010-02-23 Thread David Parker
I'm building a select from a java Resultset for a given userID. Where the value for the options are a recordD for each record in the Resultset. On loading of the page, it gets a userID and recordD from session. If recordD=null then it uses the first record from the Resultset. So the select

Re: [jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !!!!!!

2010-02-23 Thread Cesar Sanz
What are roundies? - Original Message - From: Erik eriks...@mac.com To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, February 23, 2010 10:50 AM Subject: [jQuery] Re: FOUND THE SOLUTION FOR ROUNDIES FOR IE8 !! Use the ROUNDIES script for IE7, which is really easy.