Stop a javascript function
<p>What I want:</p>

<ol>
<li>Monitor a player to execute a function when it reach 85% of the movie - <strong>Ok</strong> </li>
<li>Execute a PHP script that insert some data into a Mysql table - <strong>Ok</strong> </li>
<li>Do this only one time (stop looping), since I want only one row in the Mysql table - <strong>Fail</strong></li>
</ol>

<p>My code:</p>

<pre><code>jwplayer().onTime(function(evt) {
    if (evt.position &gt; ([evt.duration] * (85/100)) &amp;&amp; x!=1) {
        loadXMLDoc();
        var x = 1;
    }
});
</code></pre>

<p>Thanks</p>
