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"
>
<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; width: 202pt">
<colgroup>
<col
width="194" />
<col
width="131" />
</colgroup>
<tr height="20">
<td class="style6" height="20">
Seguradora</td>
<td class="style7" width="131">
Assistencia 24 horas</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Allianz Seguros</td>
<td class="style9">
4331-6900</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-722-2163</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Azul Seguros</td>
<td class="style9">
4004-3700</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
3366-2985</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-703-0203</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Bradesco Seguros</td>
<td class="style9">
4004-2757</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-701-2757</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Chubb do Brasil</td>
<td class="style9">
0800-055-9091</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Generali Seguros</td>
<td class="style13">
0800-0707-0211</td>
</tr>
<tr height="17">
<td class="style6" height="17">
H.D.I</td>
<td class="style9">
0800-701-5430</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Itau Seguros<span style="mso-spacerun:yes"> </
span></td>
<td class="style9">
4004-4444</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-727-4444</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Liberty Seguros</td>
<td class="style9">
4004-5423</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-701-4120</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Mapfre Seguros</td>
<td class="style9">
4002-1000</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-775-9000</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Maritima Seguros</td>
<td class="style9">
0800-164-949</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Porto Seguro</td>
<td class="style9">
4004-76786</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
3337-6786</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-727-0800</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Sul América Seguros</td>
<td class="style9">
4004-4100</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style9">
0800-727-4100</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Unibanco Seguros</td>
<td class="style9">
0800-014-9080</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Tokio Marine</td>
<td class="style9">
0800-707-5050</td>
</tr>
<tr height="17">
<td class="style6" height="17">
Zurich Minas Brasil</td>
<td class="style9">
0800-729-1400</td>
</tr>
<tr height="17">
<td class="style6" height="17">
</td>
<td class="style11">
</td>
</tr>
</table>
</div>
<p>
Em qualquer acidente a seguradora deverá ser notificada atraves do
<b><i>aviso de sinistro</i></b>.
Não se esqueça de avisar seu corretor de seguros também.</p>
<p>
<b>Colisão:</b><br />
Se necessário, chame a assistencia 24 horas.</p>
<p>
<b>Roubo:</b><br />
É necessário fazer o Boletim de Ocorrencia (BO)
imediatamente.</p>
<p><input id="botao" type="button" value="Clique aqui para obter os
telefones de assistencia 24 horas." onclick="return botao_onclick()" /
>
</p>
</asp:Content>
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.