On Chrome, does anybody know how to allow the Google Developer Console to access the javascript file that is linked to an HTML page requested from a dialog page? In my website, all javascript files are easily accessed from a window that contains the HTML page, but when I open a dialog box that through JQuery will request an HTML page, the linked javascript file won't come up in the Console.
Here's how I launch a dialog box with HTML (link) embedded:
function load_dialog(link, title, width, height){
//Take care of the options first.
var options = {
autoOpen: true,
position: "top",
closeOnEscape: true,
title: title,
width: width,
height: height,
modal: true,
resizable: false,
show: {effect:"fade", duration:500},
close: function (event, ui){
dialog_box.dialog("destroy").remove();
}
};
//Launch the dialog.
var dialog_box = $("<div></div>").load(link).dialog(options);
return false;
}
I should also add that it is possible to see the javascript linked to this HTML when I open the dialog box through a new window.
Thanks in advance!