Embedded HTML contains JavaScript function not getting called
<p>In my scenario i am making an ajax request to get some data and then passing its result to some function you can see the code.</p>

<pre><code>    $.ajaxSetup({ cache: false });
    $.ajax({
        url: chartUrl,
        type: 'GET',
        dataType: 'text',
        success: function(result){
            UpdateChartArea(result, chartType);
            if(isTextMining){               
                         eval('ShowBreadCrmb_'identifier.substring(1) + '();');
            }
        },
        error: function(req, status, error) {

        }
    });
</code></pre>

<p>After embedding the HTML i want to call a JS function that is in that HTML. the HTML that i am embedding is present in a user control so to have a unique instance this is how my show bread crumb method look like</p>

<pre><code>    function ShowBreadCrmb_&lt;%= reportScale.ScaleID %&gt;()
    {
    alert('LHJLH');
        var isTextMining = &lt;%= TextMiningChart %&gt;;
        if(isTextMining)
        {
            CreateTmBreadCrumb('&lt;%= reportScale.NodeLevel %&gt;','&lt;%= reportScale.NodeName %&gt;',topicList)
        }
    }
</code></pre>

<p>for more info what my updatechartarea does is </p>

<pre><code>if (parent) {
    clearChildren(parent);
    var div = document.createElement("div");
    div.innerHTML = html;
    parent.appendChild(div);
}
</code></pre>

<p>I want to call the bread crumb function after update chart area function is called.</p>
