I have the following code:
$(document).ajaxComplete(function () {
tips();
});
Which runs the tips function again when an ajax event completes! However the tips function ALSO contains ajax requests so it calls itself which isn’t what I want to do!
How could I run tips when ajax events complete EXCEPT if it’s the tips ajax request
EDIT
Don’t use my solution. Use the one from mmcnickle below.
In your
tips();function could you set a bool flag? Something like…