JQuery Thickbox - Can't get it to display

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-03-30T12:26:52Z Indexed on 2010/03/30 12:33 UTC
Read the original article Hit count: 966

Filed under:
|
|

Hi All, I am using JQuery for the first time today. I can't make it to work (It simple doesnt show up). I want to display inline content using Thickbox (Eventually I will be displaying a PDF in an iframe). I have included all the javascript and css files etc. and referenced them as in code below.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="JQueryLearning._Default" %>
<!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 runat="server">
    <title>Untitled Page</title>

    <script src="Scripts/thickbox.js" type="text/javascript"></script>

    <script src="Scripts/thickbox-compressed.js" type="text/javascript"></script>

    <script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>

    <link href="App_Themes/Theme/Css/thickbox.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a href="#TB_inline?height=50&width=300&inlineId=hiddenModalContent"
                title="Simple Demo" class="thickbox">Show hidden content.</a>
        <div id="hiddenModalContent" style="display: none;">
            <div style="text-align: center;">
                Hello ThickBox!</div>
        </div>
    </div>
    </form>
</body>
</html>

Am I missing something? Thanks, Ali

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about thickbox