shadowbox + .net update panel

G

Giorgio

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>
 
G

Giorgio

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top