DIALOG on IE8
DIALOG on IE8
I've got a dialog with button that works in Firefox 1 and 3.5, Chrome,
and Safari.
Unfortunately, I can't get it working in IE8 or IE7.
The older IE browsers seem to be entirely broken: the div that
represents the dialog box is simply written to the screen in the
appropriate place on the page, and clicking on the class of button
(RM_button, see code below) that should bring up the dialog also does
nothing.
<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/
Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent"
runat="server">
Sinistro
<link href="../../Content/jquery-ui-1.7.2.custom.css" rel="stylesheet"
type="text/css" />
<script src="../../Content/jquery-1.3.2.js" type="text/javascript"/>
<script src="../../Content/jquery-ui-1.7.2.custom.min.js" type="text/
javascript"/>
<script type="text/javascript">
$.ui.dialog.defaults.bgiframe = true;
$.ui.dialog.defaults.autoOpen = false;
$(function() {
$('#Chamadas').dialog({ buttons: { "Ok": function() { $
(this).dialog("close"); } } }); });
function botao_onclick() {
$('#Chamadas').dialog('open')
}
</script>
<style type="text/css">
.style6
{
width: 119px;
text-align: left;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent"
runat="server">
<h2>Sinistro</h2>
<div id="Chamadas" title="Chamadas 24 Horas em Urgencias Seguradoras"