[jQuery] Re: Click events handling conflict due to prototype?

2009-06-23 Thread Steve the Canuck
Ok, I know why this is happening. This is the issue where Ajax loaded content is not in the jQuery DOM tree, so you have to use a non Ajax loaded selector in order to respond to the event. Steve On Jun 22, 9:14 pm, Steve the Canuck wrote: > Thanks, yes, I should have mentioned - I do h

[jQuery] Trigger jquery event on ajax loaded content

2009-06-22 Thread Steve the Canuck
Hi, I'm using the jquery Star-Rating widget. However, I'm returning the set of input radio elements required to display the widget as the result of an ajax call. In order to convert these widgets to the star rating display I need to call the .rating() function based on the selector. How do I g

[jQuery] Re: Click events handling conflict due to prototype?

2009-06-22 Thread Steve the Canuck
.jquery.com/Using_jQuery_with_Other_Libraries > Steve the Canuck wrote:Thanks, I tried this, but it doesn't seem to work: > jQuery('.cancel_posting').click( function(e) { alert("got here"); if > (!confirm("Are you sure you want to cancel this booking?")) { > e.preventDefault();

[jQuery] Re: Click events handling conflict due to prototype?

2009-06-22 Thread Steve the Canuck
e.preventDefault(); } }); On Jun 22, 3:17 pm, "Cesar Sanz" wrote: > Use jQuery and not $ > > - Original Message - > From: "Steve the Canuck" > To: "jQuery (English)" > Sent: Monday, June 22, 2009 10:34 AM > Subject: [jQuery]

[jQuery] Re: Click events handling conflict due to prototype?

2009-06-22 Thread Steve the Canuck
Btw... I do have a workaround - register my click event on something outside the table, such as the body tag, and then check the original event target. I'd prefer to target just the list item and anchor though if possible. On Jun 22, 11:14 am, Steve the Canuck wrote: > Hi, > > I

[jQuery] Click events handling conflict due to prototype?

2009-06-22 Thread Steve the Canuck
Hi, I have a simple list inside a table Cancel I have a ready event handler for click events on the anchor: $j('.cancel_posting').click( function(e) { if (!confirm("Are you sure you want to cancel this booking?")) { e.preventDefault();