[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Theodore Ni
I know exactly what you mean, and it makes perfect sense, and now going back to Firefox, it works like a charm. Normally that would be enough for me, but this needs to run in the exploder :-( Ok, I've gone back and tried to recreate this example, and you are right, the selector works if I add in

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Theodore Ni
Just in case anyone wants to see, this is the test script that I used. Just change the filenames to whatever you want: html head titleTesting Dragging/title script type=text/javascript src=jquery.js/script script type=text/javascript src=jquery.livequery.js/script script type=text/javascript

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Brandon Aaron
The ID shouldn't be necessary at all ... it just provides some context to make the selector faster. I'll try out your example soon to see if I can spot the issue. -- Brandon Aaron On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote: I know exactly what you mean, and it makes perfect sense, and now

[jQuery] Re: Live Query with Draggables

2007-08-28 Thread Brandon Aaron
I'm not very familiar with the Interface library but it looks like the Draggable code clones the element using native DOM methods. Try registering the Draggable plugin via the registerPlugin method ( http://brandonaaron.net/docs/livequery/#plugin-developers) like this:

[jQuery] Re: Live Query with Draggables

2007-08-28 Thread Brandon Aaron
Just use Live Query to bind the submit handler. It will only bind it once per a new form element. $('form.client').livequery('submit', function() { alert('boo'); return false; }); Also, try to give the selector more scope, like a parent element with an ID. $('#containerID

[jQuery] Re: Live Query with Draggables

2007-08-28 Thread Theodore Ni
That sounds like it should work, but it isn't doing anything. I think there must be something wrong with my fundamental understanding of how jQuery or the plugins work. Suppose I try this: $('form.client').livequery(function() { //alert('new: ' + $(this).parent().attr('id'));