Hi.
There is a page1.html (I open it in browser):
<div id="content">
</div>
<script type="text/JavaScript">
jQuery.ajax({
type : "GET",
url : 'page2.html',
dataType : "html",
success : function(response) {
jQuery('#content').append(response);
}
});
</script>
Code of the page2.html:
<script type="text/JavaScript" src="js/page2.js"></script>
<script type="text/JavaScript">
test();
</script>
Code of the page js/page2.js:
function test() {
alert('Function Test()');
}
Everything works well, the window "Function Test()" is shown. But the problem is that I can't reach the code of function test() in firebug js debugger. It doesn't appear in event scripts nor in eval.
How can I fix that ?
FYI: If I don't put the function in separate js file, but place it in page2.html, it appears in debugger corectly.
If I put "debugger" word in test() function, the firebug stops, but the source code of the function is still unreachable.
Versions: Firefox 3.0.10, firebug 1.3.3
Thanks
Update: pretty much the same as this question http://stackoverflow.com/questions/858779/making-firebug-break-inside-dynamically-loaded-javascript , but there is no answer yet