Glad to help! Sometimes people get annoyed with me when I answer a question
with another question or a little riddle like that, when they really just
wanted a quick answer. So I appreciate your going to the extra work to
figure out the point I was getting at. :-)

I find this "let's forget about jQuery for the moment" trick pretty handy,
since it's easy to get caught up in trying to find some special jQuery way
of doing things, when it is really all just JavaScript code.

Happy coding,

-Mike

> From: debussy007
> 
> Hi Mike !
> 
> Thank you for the effort you bring in each of your answers!
> I tought at first this example was not at all similar to my 
> situation, but actually it is !
> I had an anonym callback function, but I can rather make it a 
> standard function and just call this function.
> I was just confused because it was a callback but I can 
> actually just call this callback, don't need to fire the 
> associate event...
> 
> Thank you very much !

> > Michael Geary-3 wrote:
> > 
> > Let's forget jQuery for a moment and reword the question slightly...
> > 
> > I've written a couple of functions named one and two:
> > 
> >     function one() {
> >         alert( 'one!' );
> >     }
> > 
> >     function two() {
> >         alert( 'two!' );
> >     }
> > 
> > Somewhere else there is code that calls function one. I don't know 
> > anything about that code and can't change it. But I want 
> > function two 
> > to be called automatically every time function one is called, after 
> > function one has displayed its alert. How would I do that?
> > 
> > If you answer that, you'll know the answer to your question.

> >> From: debussy007
> >> 
> >> I would like to execute instructions after an event has been fired 
> >> and
> >> processed:
> >> 
> >> $('#int').click(); // I fire click event, callback 
> function will be 
> >> executed // Execute other instructions after the callback 
> fct of the 
> >> click event has been processed
> >> 
> >> The problem is, how do I know when the callback function has been 
> >> processed ?
> >> 
> >> Thank you for any tips !

Reply via email to