Jquery Repeating Problem
<p>I would like to trade once a function of the change. but for the change, constantly trying to link the exchange function of detecting a change to the previous transactions. As an example, I put alert. As you can see in the alert process is constantly growing. I just clicked in the process being repeated this process to make what can I do?.</p>

<p>Thank you for your attention.</p>

<p>revision of the code running : <a href="http://www.smyrnart.com/deeplinking/index.html" rel="nofollow">http://www.smyrnart.com/deeplinking/index.html</a></p>

<p>My codes;</p>

<p>Index.html</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;&lt;head&gt;
&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="http://www.asual.com/jquery/address/samples/express/jquery.address-1.3.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
        $('a').address(function() {return $(this).attr('href').replace(/^#/, '');});
        $.address.change(function(event) {

            var url="";
            if      (event.value=='/index1')    {url = "index1.html"}
            else if (event.value=='/index2')    {url = "index2.html"}

            if (url!==""){
                $.ajax({url : url,success : function(data){$("#content").html(data);}});
            }
        });
&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;a title="" href="#/index1/"&gt;index1&lt;/a&gt;  |  &lt;a title="" href="#/index2/"&gt;index2&lt;/a&gt;
&lt;div id="content" style="margin-top:50px;"&gt;&lt;/div&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>Index1.html</p>

<pre><code>&lt;strong&gt;in order;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;

index1&lt;br/&gt;
index2&lt;br/&gt;
index1&lt;br/&gt;
index2&lt;br/&gt;&lt;br/&gt;

alert: problem repeat
</code></pre>

<p>Index2.html</p>

<pre><code>&lt;script type="text/javascript"&gt;
$.address.bind('change', function(e) {
//I used as examples only. anything else to do here, but should be resolved in this process of repetition.
    alert('problem')

});
&lt;/script&gt;

&lt;div&gt;
$.address.bind('change', function(e) {
    alert('problem')
});
&lt;strong&gt;Go now #index1, at this #index2&lt;/strong&gt;
&lt;/div&gt;
</code></pre>
