From: Giorgio on
Hi,
I've a problem with shadowbox and updatepanel on Firefox (on i.e. i don't):
I added code as suggested here
http://www.developersource.net/DevPage.aspx?ID=3
but it opens my link like a normal link without shadowbox

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="delete2.aspx.vb"
Inherits="delete2" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script src="javascript/jquery-1.4.2.min.js"
type="text/javascript"></script>
<link href="CSS/shadowbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="shadowbox.js"></script>

<script type="text/javascript">
/*
Shadowbox.init({
language: 'it',
players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});
*/
</script>

</head>
<body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
function EndRequest(sender, args)
{
Shadowbox.init({language: 'it', players: ['img', 'html', 'iframe',
'qt', 'wmp', 'swf', 'flv']});
alert("iii2");
}
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<asp:LinkButton ID="LinkButton1" runat="server">first
HERE</asp:LinkButton>
<ul>
<li class="avvia">
<a href="link" rel="shadowbox; width=740; height=640px;">open shadowbox</a>
</li>
</ul>


</ContentTemplate>
</asp:UpdatePanel>


</form>

</body>
</html>


From: Giorgio on
solved putting this code after <asp:ScriptManager ID="ScriptManager1"
runat="server"></asp:ScriptManager>

<script type="text/javascript">
Shadowbox.init({language: 'it', players: ['img', 'html', 'iframe', 'qt',
'wmp', 'swf', 'flv']});

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
function EndRequest(sender, args) {

Shadowbox.setup();
}
</script>