Can I make jQuery .load work for something more than a simple load to the HTML of an element?
<p>I have the following code that does more than I have seen <a href="http://api.jquery.com/load/" rel="nofollow">jQuery load</a> used for:</p>

<pre><code>        $.ajax({
            url: href,
            type: 'GET'
        })
        .success(function (content) {
            $('#content')
                .html("&lt;div class='block-border'&gt;" + content + "&lt;/div&gt;")
                .applyTemplateSetup()
                .buildTableOfContent();
            if ($('#cityLegend-1').length) {
                $('#cityLegend-1').html("Question " + html);
            }
            $('#article').css('visibility', 'visible');
            var editHref = "/Admin/Contents/Edit?pk=0003000&amp;rk=" + href.substring(2,5);
            $('#editContent').attr('data-href', editHref);
        })
        .fail(function (ajaxContext) {
            ajaxOnFailure(ajaxContext)
        });
</code></pre>

<p>Please note my content may contain HTML that's written by trusted sources internal to the group.</p>

<p>Can someone tell me if I can use jQuery load for this. I am thinking it's probably too much but I would just like to confirm this. </p>

<p>Also if I was able to use jQuery load then are there any advantages in using it. Sorry if this question does not sound so sensible but the reason I am asking all of this is that I would like to make use of a template function that I have been given that adds functionality to jQuery .load.  </p>
