Click here to Skip to main content
15,886,807 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello friends,
i am building a web application that should look like windows8 Pattern, so i searched and found using MetroUI-CSS where you can have set of styles to create a site with an interface similar to Windows 8. i am new in it in my application first i need a Accordion,so i read the manuals and apply it in my application but somehow Accordion is not working the content of Accordion is not opening.
i am new in "MetroUI-CSS",so i don't know why Accordion is not opening...?
please help me to fix it..
Thanks In advance
i am pasting my code here
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamStartPage.aspx.cs" Inherits="Project_Irshad.ExamStartPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="css/metro-bootstrap-responsive.css" rel="stylesheet" />
    <link href="css/metro-bootstrap.css" rel="stylesheet" />
    <script src="js/js/jquery.easing.1.3.min.js"></script>
    <script src="js/js/jquery.min.js"></script>
    <script src="js/metro/metro-accordion.js"></script>
    <title>ExamStart</title>
    <style>
        .main {
            width: 100%;
        }

        .left_content {
            width: 30%;
            float: left;
        }

        .Right_Content {
            width: 70%;
            float: right;
        }
    </style>
    <script type="text/javascript">
       
    </script>
</head>
<body class="metro">
    <form id="form1" runat="server">
        <div class="main">
            <div class="left_content">
                <div class="accordion" data-role="accordion">
                    <div class="accordion-frame">
                        <a href="#" class="heading">Section 1</a>
                        <div class="content">
                            <a>Hello Every One...</a>
                        </div>
                    </div>
                    <div class="accordion-frame">
                        <a href="#" class="heading">Section 1</a>
                        <div class="content">
                            <a>Hello Every One in section 2</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="Right_Content">
            </div>
        </div>
    </form>
</body>
</html>
Posted

1 solution

Did you use the developer tools in your browser to check for js errors?

Just from what you posted you are adding the reference for jQuery easing before jQuery itself that might be your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900