[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-08-03 Thread Mario Moura
Hi Wizzud You provide to me the best explain how click() and events works and how unbind() them. Should be in documentation. Thanks a lot "2. the click functions You detail the click function attached to div.vote_against_selected, the last steps of which are to change the class of the clicked el

[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-07-30 Thread oliver
It sounds to me as though you are setting up the $ ("div.vote_for_selected").click( ... ) event when the div in question does not actually have that class, correct? If so, it is not going to work. Setting an event on a jQuery selector that returns no DOM elements does NOT set up events for when

[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-07-29 Thread Wizzud
1. the load() Klaus is trying to make the point that if you do not want any data loaded why are you running a load()? You are running the load() into an element that you have clearly stated does not exist, so in my opinion it is actually a bug in jQuery that is even allowing the ajax call to be p

[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-07-28 Thread inVINCable
Hm, I don't quite exactly understand what you are saying. I simply load into the div.fake because I do not want any data loaded. But firebug DOES show an ajax action taking place everytime I click that element, allowing me complete the ajax request. Thank you for your post though, I will look into

[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-07-28 Thread Klaus Hartl
inVINCable wrote: Hello everyone, I am just about ready to throw my darn computer out the window here :P. What I am doing is quite simple, I am using the .load() function to call upon a function, like so: $("div.vote_against_selected").click(function(){ //first load content $("div.fake").loa