I'm using a $.get call to get the contents for a dialog box and I'm
trying to run the $(document).ready on the ajax return like so:

parentPage.html:
$.get('desiredContent.html',function(data){
$("#dialogBoxDiv").html(data);
$("#dialogBoxDiv").dialog('open');
}

desiredContent.html:
$(document).ready(function() {
alert("content loaded!");
});

this works fine for firefox, but ie won't run the $(document).ready()
function on the desiredContent page. Is there a way to do this that
will work in both firefox and ie?

Thanks!

Reply via email to