For example, i want to do know if $(‘#seomDiv’).load(…); is completed in real time. I’m referring to the ajax .load() function.
Any idea?
EDIT: hmmmmm… I’m guessing something with setInterval()!
EDIT #2: I’m wondering if the completiong of the event can be somehow detected in real time from a totally seperate queue.
EDIT #3: I guess I have a better question: What event gets triggered when a jQuery animation or ajax is finished??
The solution is to set a boolean from the .load() callback. An external function can check the value of the boolean in intervals. Check here for the details: How do you make an event listener that detects if a boolean variable becomes true?