Click here to Skip to main content
15,884,962 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends,
In my .NET webpage i m using a modal dialog popup window to show the report by passing url and title. I got a script error when i call that dialog window in my IE8 browser, "Object doesn't support this property or method". The script I m using as follows,


JavaScript
function openDialog(title,url)   {
    $('<div>').html('loading...').dialog({
        modal: true,
        open: function ()
        {
            $(this).load(url).dialog("open");
        },
        close: function(event, ui) {
            $(this).dialog( "close" );
        },
        height: 500,
        width: '80%',
        title: title,
        cache: false
    });
}
Posted
Comments
ZurdoDev 6-Apr-15 9:02am    
If it works in other browsers and not in IE8 then either don't support IE8 or figure out what is causing the error and find a workaround for IE8.
vbmike 6-Apr-15 11:18am    
I have found evidence that changing the doctype for the page helps....(to xhtml).
R@M-ITcian 7-Apr-15 0:58am    
Thanks for your replies friends. I m using (.aspx) pages in my web application not (.html) and especially i just need it on IE8. Could you help me on this scenario?
Sebastiaan Meijerink 18-Apr-15 11:51am    
You might be using .aspx. But that renders HTML. You're ASPX page does have a HTML doc type.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900