How do you get a javascript function to only be running one instance at any one point?
<p>I have some code that I'd like to run on a page. My problem is that I don't want it to be run more than once at any one point. It can run multiple times, but just not while another instance of itself is running. I'm using jQuery and loading ajax content.</p>

<p>I just need something that prevents users from clicking hundereds of times and building up the que and pinging my server heaps.</p>

<p>Is this possible?</p>

<p>Thanks.</p>
