[jQuery] Re: live query

2007-10-04 Thread bluejam
hi all it ok I managed to do it another way using .find

[jQuery] Re: live query

2007-10-03 Thread Brandon Aaron
Try creating a small, trimmed down test case ... removing other elements from the page. You should be able to find what is causing the problem then. The only reason live query would be attaching the event to all a tags is if your selector a[rel=sec] matches all your a tags. You might want to try ru

[jQuery] Re: live query

2007-10-03 Thread bluejam
Hi im using the very latest version of jQuery I can't post example online as its on my dev server and the project is too hush hush to show just yet the code that adds the element works fine, its Live Query that is not working as it adds the event to all 'a' elements and I tried your code it made

[jQuery] Re: live query

2007-10-03 Thread bytte
Why don't you use the ID of the a tag? The ID is a unique reference, so then you're sure you're targeting the correct a tag and none of the others. On 3 okt, 13:53, bluejam <[EMAIL PROTECTED]> wrote: > Hi > > Im adding an element to Dom on fly, I then want to add an action to > that element, i've

[jQuery] Re: live query

2007-10-03 Thread Brandon Aaron
Which version of jQuery are you using? Could you post the code that adds the element? Better yet could you post an example online? Also if you are just binding an event, you shouldn't use the function syntax. Do it like this: $('a[rel=sec]').livequery('click', function() { doSomething(); });

[jQuery] Re: Live Query doesnt find it, standard selection doesnt find it... whats wrong?

2007-09-09 Thread ethanpil
Turns out the code was fine. But, I was using JQuery.ready instead of $(document).ready for my main code. This resulted in the code setting the default visibility values every time the DOM was changed, insted of only the fist time. Simple and stupid mistakes always take the longest to debug. Ch

[jQuery] Re: Live Query and tables problem

2007-09-05 Thread Brandon Aaron
Could you explain how the example doesn't work? Are you getting an error? Which browser? I can't read your mind, nor can I do the work for you. I tried to look at the site again but I only know English. I'd like to help but I need to understand first. You initially reported an error with Live Quer

[jQuery] Re: Live Query and tables problem

2007-09-05 Thread Jean
Sorry but your example isnt work now i remove the login validation http://www.interalfa.com.br/kbs/pesquisa_teste.php On 9/4/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: > I wasn't able to see that site but I went ahead and created a small test > case based on the information you provided. > > h

[jQuery] Re: Live Query and tables problem

2007-09-04 Thread Brandon Aaron
I wasn't able to see that site but I went ahead and created a small test case based on the information you provided. http://brandonaaron.net/jquery/issues/livequery/table_test/table_test.html I'm not able to reproduce the error you are getting. -- Brandon Aaron On 9/4/07, Jean <[EMAIL PROTECTED

[jQuery] Re: Live Query and tables problem

2007-09-04 Thread Jean
I´m trying to do the hover example of the site http://www.interalfa.com.br/kbs/pesquisa_teste.php i´m using dimensions e auto plugins On 9/4/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: > Are there any other scripts included? Would you mind posting up the example? > > -- > Brandon Aaron > > >

[jQuery] Re: Live Query and tables problem

2007-09-04 Thread Brandon Aaron
Are there any other scripts included? Would you mind posting up the example? -- Brandon Aaron On 9/4/07, Jean <[EMAIL PROTECTED]> wrote: > > > Is a very simple example and dont works =/ > > $('tr').livequery('mouseover', function(){ $(this).addClass('hover');}); > > t has no properties > [Break

[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

[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: Testing Dragging $(document).ready(function() { // I'd think that this would work $('form.client').livequery('submit', function() { alert($(this).find('[E

[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 a

[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')); $(t

[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 form.client').livequery

[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: $.livequery.registerPlugin("