How do I load specific content ID according to referrer URL using .load()
<p>Here an example of my code, which when user <code>click</code> a link then it will load a specific content <code>id</code> and will show <code>default</code> content if there have <code>no click</code> action into <code>#content div</code></p>

<pre><code>$(document).ready(function () {
    $.ajaxSetup({
        cache: false
    });
    $("a.view").live('click', function (e) {
        var id = $(this).data("id");
        $('#content').load("content.php?" + id);
        e.preventDefault();
    });
    $('#content').load("content.php");
});
</code></pre>

<p>Question, how to load a content automatically when user using <code>direct link</code> or type in url bar : example <code>http://domain.com/content.php?id=5</code></p>

<p>So if user type or using direct link I want script doing exactly like <code>.live('click')</code> and load the <code>current id</code> example is <code>5</code></p>

<p>Let me know.</p>
