I'm experiencing a small issue with loading addresses in my divs. I have a link that triggers a dialog box and loads the linked address into it, but when I click on the link, the dialog box opens briefly and then everything disappears!
Here's what the link looks like:
<a href="http://localhost:9090/info.aspx?ID=1341" class="clinfo">INFO</a>
and the dialog trigger script:
$(".clinfo").click(function () {
$("body").on("click", ".ui-widget-overlay", function () {
$('#divInfo').dialog("close");
});
$("#divInfo").dialog("open");
$('#divInfo').empty();
$("#divInfo").load($(this).attr("href"));
});
I can't seem to pinpoint where the problem lies. Strangely, when I load divInfo from an iFrame, it works perfectly and loads the page into divInfo as expected. But outside of the iFrame, it opens divInfo and then redirects the whole page!