[jQuery] Re: creating search page with "click" for more results.

2009-03-25 Thread iskills
AHAH! Not sure if it was the return false, or clearing up a php error in the return (which I could not see until I removed the display: none - DUH!) but it is working now Thanks for your help!!! On Mar 25, 2:10 pm, James wrote: > I don't see the issue, but I do see something that might af

[jQuery] Re: creating search page with "click" for more results.

2009-03-25 Thread James
I don't see the issue, but I do see something that might affect it. Try: $(".vieworderdata").live("click",function() { $(".order_logs1").show("slow"); return false; // <-- added this line }); Since you're clicking on a link, the "return false" te

[jQuery] Re: creating search page with "click" for more results.

2009-03-25 Thread iskills
Thanks James - that helps quite a bit! I am now able to execute an alert, using the .live function for the added elements on the page. The issue I am now having is that the display of the order_logs element will not "show". Do I need to do another .live call on that? I am a bit confused now ;)

[jQuery] Re: creating search page with "click" for more results.

2009-03-24 Thread James
The issue is that once you bind a click handler on existing elements, it will not take effect on elements added in the future. You can re- bind it again once you added the new content, or you can use jQuery's live() function in place of click() to have elements added in the future to also have the