[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-14 Thread brian
On Sat, Dec 13, 2008 at 5:05 PM, ray wrote: > > It appears that the .children portion of the code either isn't getting > the .ajax_link classes, or the click handler isn't getting correctly > applied. Is there a way to determine what the actual results returned > are by the following: > > $(th

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-13 Thread ray
It appears that the .children portion of the code either isn't getting the .ajax_link classes, or the click handler isn't getting correctly applied. Is there a way to determine what the actual results returned are by the following: $(this).children('.ajax_link') i tried something like: v

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-13 Thread brian
On Fri, Dec 12, 2008 at 4:30 PM, ray wrote: > > I've implemented the changes you've suggested, but I'm seeing the same > issue (clicks are not being intercepted by JQuery). :-/ I do > understand what you suggested, but I'm now very confused as to why it > isn't working. Post some code? > Is t

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread ray
I've implemented the changes you've suggested, but I'm seeing the same issue (clicks are not being intercepted by JQuery). :-/ I do understand what you suggested, but I'm now very confused as to why it isn't working. Is there a way to see, at the current time, what links have the click handler

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:24 PM, ray wrote: > > could you show me an example of what you mean here by this, either > using the code above or another example? That sounds like the > 'correct' way to do it. > > [ set the click handler to be a separate function and ensure that > any new links a

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread ray
could you show me an example of what you mean here by this, either using the code above or another example? That sounds like the 'correct' way to do it. [ set the click handler to be a separate function and ensure that any new links also get the click handler attached (in your success block

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread brian
This is probably the most asked question wrt jQuery. The reason why your newly-created links are not being handled by the ajax function is because they did not exist when the click handler was attached. Either set the click handler to be a separate function and ensure that any new links also get