Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > shadowbox + .net update panel

Reply
Thread Tools

shadowbox + .net update panel

 
 
Giorgio
Guest
Posts: n/a
 
      08-06-2010
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>




 
Reply With Quote
 
 
 
 
Giorgio
Guest
Posts: n/a
 
      08-11-2010
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>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to really disable Java Update check when there is NO "Update" tab in Control Panel? Sven Fischer Java 0 10-22-2012 07:54 AM
access shadowbox with watir Mario Ruiz Ruby 1 12-14-2010 10:36 AM
shadowbox + .net update panel Giorgio Javascript 1 08-11-2010 02:29 PM
shadowbox zoom: display an img sent by asp Giorgio Javascript 1 10-19-2009 11:33 AM
shadowbox zoom: display an img sent by asp Giorgio ASP General 1 10-18-2009 08:19 PM



Advertisments