shadowbox + .net update panel

Discussion in 'ASP .Net' started by Giorgio, Aug 6, 2010.

  1. Giorgio

    Giorgio Guest

    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>
     
    Giorgio, Aug 6, 2010
    #1
    1. Advertising

  2. Giorgio

    Giorgio Guest

    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>
     
    Giorgio, Aug 11, 2010
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Giorgio
    Replies:
    1
    Views:
    859
    Evertjan.
    Oct 18, 2009
  2. Mario Ruiz

    access shadowbox with watir

    Mario Ruiz, Dec 13, 2010, in forum: Ruby
    Replies:
    1
    Views:
    132
    Jarmo Pertman
    Dec 14, 2010
  3. Giorgio
    Replies:
    1
    Views:
    127
    Thomas 'PointedEars' Lahn
    Oct 19, 2009
  4. Giorgio

    shadowbox + .net update panel

    Giorgio, Aug 5, 2010, in forum: Javascript
    Replies:
    1
    Views:
    184
    Giorgio
    Aug 11, 2010
  5. Sven Fischer
    Replies:
    0
    Views:
    476
    Sven Fischer
    Oct 22, 2012
Loading...

Share This Page