[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
Thank you!. I've been thinking that it might be because the element changes? in that case, how would I make it re-register the click event when the element has been clicked? On 5 Jan., 21:22, Ricardo Tomasi ricardob...@gmail.com wrote: doesn't make any sense, there must be something else

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
?php include('../includes/top.php'); ? ?php include(../editor/fckeditor.php); ? ?php $mode = isset($_GET['type']) ? $_GET['type'] : false; ? script $(document).ready(function(){ $(#cal ul).tabs(); $(.CalendarDelete).click(function(Element) { var

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread Ricardo Tomasi
There it is. How exactly does it change, are you replacing it? See the LiveQuery plugin, it rebinds event handlers to all matched elements automatically: http://brandonaaron.net/docs/livequery/ On Jan 6, 7:49 am, revivedk timsoren...@gmail.com wrote: Thank you!. I've been thinking that it

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
I'm pretty sure i'm not replacing it, im calling this: $(this).attr(src,images/up.png); does that actually replace the element? I did try $(this).src = images/up.png; however that didn't seem to work On 6 Jan., 17:04, Ricardo Tomasi ricardob...@gmail.com wrote: There it is. How exactly does it

[jQuery] Re: $.click stops working after 2 clicks

2009-01-06 Thread revivedk
I found the error. had to do data.remove(); instead of data.hide(); On 6 Jan., 17:23, revivedk timsoren...@gmail.com wrote: I'm pretty sure i'm not replacing it, im calling this:  $(this).attr(src,images/up.png); does that actually replace the element? I did try $(this).src = images/up.png;

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread Andy Matthews
How about copying and pasting the code in question. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of revivedk Sent: Monday, January 05, 2009 11:06 AM To: jQuery (English) Subject: [jQuery] Re: $.click stops working after 2

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread revivedk
Unfortunately, no. On 5 Jan., 17:57, Liam Potter radioactiv...@gmail.com wrote: can we see a live example? revivedk wrote: Hi. I'm having a problem, where    $(.showEvents).click(function(e) {            var CalendarID = $($(e.target).parent()).parent();            if (

[jQuery] Re: $.click stops working after 2 clicks

2009-01-05 Thread Ricardo Tomasi
doesn't make any sense, there must be something else interfering with your code. BTW, you can make that way more readable: $(.showEvents).click(function(e) { var Calendar = $(this).parent().parent(), ID = Calendar.attr('id').substr(4), data = $('#data_+ID); if