hi all
it ok I managed to do it another way using .find
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
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
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
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();
});
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
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
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
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
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
>
>
>
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
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
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
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
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
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
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("
17 matches
Mail list logo