Jquery dialog crash in IE

Jquery dialog crash in IE


Hi,
I am using jquery dialog to display messages. As i have to show this
confirmation messages depending upon my server side code. for e. g if
record inserted successfully i ues
Page.ClientScript.RegisterStartupScript() method. It works fine in
mozilla
firefox but while browsing same page in IE it shows me error saying
that
"Internet Explorer Cannot Open the Page". Here is my server side code
protected void Button1_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "showpp",
"showpp();", true);
}
where showpopup() is my jscript method where i am calling jquery
Dialog to
display message. Here is my showpp() jscript function which is
present in
head tag of my aspx page.
<script type="text/javascript">
function showpp()
{
var vr=document.getElementById('dialog');
vr.style.display='block';
$('#dialog').dialog({Height:1000,
bgiframe: true,
modal: true,
buttons: {
Close: function() {
$(this).dialog('close');
}
},
overlay: {
opacity: 0.5,
background: "black"
}
});
}
'dialog' is the id of my div which i am showing in messages. it is
invisible default. I make that visible first and then call
$('#dialog').dialog() method.
Please help me out to solve this issue as few days are remaining to
meet
project's deadline.