Click here to Skip to main content
15,904,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Jquery plugin for progress bar on page load. Plugin is available on : Showing Progress Bar Using jQuery[^]

I am calling required function in anchor tag like
<a href="../Queue/ProblemManagement.aspx"  önclick="$.showprogress()">Problem
                        Management</a></li>


When I click on this link for first time, progress bar is visible. But next time I get error saying "$.showprogress()" is not a function.

What can be wrong in my code?

MasterPage code:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="SAPMaster.master.cs" Inherits="MasterPages_SAPMaster" %>

<!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>SAP</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="author" content="Tom@Lwis (http://www.lwis.net/free-css-drop-down-menu/)" />
    <meta name="keywords" content=" css, dropdowns, dropdown menu, drop-down, menu, navigation, nav, horizontal, vertical left-to-right, vertical right-to-left, horizontal linear, horizontal upwards, cross browser, internet explorer, ie, firefox, safari, opera, browser, lwis" />
    <meta name="description" content="Clean, standards-friendly, modular framework for dropdown menus" />
    <link rel="shortcut icon" type="image/x-icon" href="css/dropdown/themes/mtv.com/images/favicon.ico" />
    <link href="../Style/Css_style.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery/jquery.dropdown.js"></script>
    <script type="text/javascript" src="../Scripts/Validation.js"></script>
    <script type="text/javascript" src="../Scripts/progress.js"></script>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
 </head>
 <body>
    <div class="menudiv">
        <div class="welcome">
            <asp:Label ID="lblName" runat="server" Text=" Welcome, " Visible="false"></asp:Label></div>
        <div class="faqs">
            <ul>
                <li>Help |</li>
                <li>Faq`s |</li>
                <li><a  runat="server" id="aLogin" href="~/Admin/Login.aspx?Id=1" style="color:White;"><font font-underline="false">Login</font></a> </li>
                <li><a  runat="server" id="aSignOut" href="#"  önserverclick="aSignOut_click" visible="false" style="color:White;"><font font-underline="false">Log
                    out</font></a></li>
            </ul>
        </div>
    </div>
    <div class="menu" style="z-index: 1000">
        <ul id="nav" class="dropdown dropdown-horizontal">
          <li id="n-music"><a href="../Pages/Home.aspx" class="dir">Main Menu</a>
            <ul>
              <li><span class="dir">Meet the Team</span>
               <ul>
                <li class="first"><a href="../Pages/CooOperations.aspx">COO OPS</a></li>
                 <li><a href="../Pages/ServiceDesk.aspx">Service Desk</a></li>
                  <li><a href="../Pages/IncidentMgmt.aspx">Incident Management</a></li>
                  <li><a href="../Pages/ChangeMgmt.aspx">Change Management</a></li>
                  <li><a href="../Pages/ProblemMgmt.aspx">Problem Management</a></li>
                  </ul>
                 </li>
                  <li><a href="http://w-mum-asduk1/ASDWiki/Default.aspx" target="_blank">Process Library</a></li>
                  <li><span class="dir">Dashboards</span>
                   <ul>
                    <li class="first"><a href="../Queue/ProblemQueue.aspx?Id=1">P1 Problems</a></li>
                    <li class="first"><a href="../Queue/ProblemQueue.aspx?Id=4">P2 Problems</a></li>
                    <li><span class="dir">Change Requests</span>
                      <ul>
                        <li class="first"><a href="../Queue/ChangeQueue.aspx?Id=1">WO For Past 7 Days</a></li>
                         <li><a href="../Queue/ChangeQueue.aspx?Id=2">WO For Next 14 Days</a></li>
                      </ul>
                         </li>
                          <li><span class="dir">Problem Requests</span>
                           <ul>
                            <li class="first"><a href="../Queue/ProblemQueue.aspx?Id=2">Live Investigations</a></li>
                           </ul>
                         </li>
                       <li><span class="dir">Reports</span>
                                <ul>
                                  <li class="first"><a href="../Reports/ProblemReport.aspx">Problem</a></li>
                                  <li><a href="../Reports/ChangeReport.aspx">Change</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li><span class="dir">Change Management</span>
                        <ul>
                            <li class="first"><a href="../Queue/ChangeManagement.aspx">Online CAB</a></li>
                        </ul>
                    </li>
                    <li><a href="../Queue/ProblemManagement.aspx"  önclick="$.showprogress()">Problem Management</a></li>
                    <li><span class="dir">Service Improvement Initiative</span>
                        <ul>
                            <li class="first"><a href="../SII/OpenSII.aspx">View SII’s</a></li>
                            <li><a href="../SII/Submit_SII.aspx">Submit SII</a></li>
                        </ul>
                    </li>
                    <li><span class="dir">Risk Register</span>
                        <ul>
                            <li class="first"><a href="../Risks/ViewRisks.aspx">View Risks</a></li>
                            <li><a href="../Risks/Submit_Risks.aspx">Submit New Risk</a></li>
                        </ul>
                    </li>
                    <li><a href="../Pages/ServiceReviews.aspx">Service Reviews</a></li>
                    <li><span class="dir"  runat="server" id="spAdmin">Admin</span>
                        <ul>
                            <li class="first"><a href="../Admin/ManageServiceRequest.aspx?isRedirected=false">Manage
                                Service Review</a></li>
                        </ul>
                    </li>
                    <li><span class="dir"  runat="server" id="spSuperAdmin">Super Admin</span>
                        <ul>
                            <li class="first"><a href="../Admin/CreateUser.aspx">Manage User</a></li>
                            <li><a href="../Admin/ManageTicker.aspx">Manage News</a></li>
                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="Scriptmanager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
        </asp:ScriptManager>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    </form>
    <div id="footer" class="ticker">
        <marquee><asp:Label runat="server" ID="lblMarquee" Text=""></asp:Label></marquee>
    </div>
    <asp:Label runat="server" ID="lblMsg"></asp:Label>
</body>
</html>
Posted
Updated 10-Apr-12 18:13pm
v3
Comments
vino2012 10-Apr-12 6:41am    
Are you using the above code in master page or page ?
tejashri.gandhi 10-Apr-12 8:06am    
yes..it is in master page

1 solution

I have tried with your code but its working perfectly on my side.
Can you provide me your code so i can reach to exact problem.
 
Share this answer
 
Comments
tejashri.gandhi 10-Apr-12 8:05am    
my code means?..You want complete solution or just one file?
Angel1320 10-Apr-12 8:27am    
I want your complete solution
Angel1320 10-Apr-12 8:28am    
Because i have tried this and its working perfectly on my side. so i want to run your code. So if possible give me your code
tejashri.gandhi 10-Apr-12 8:45am    
how can i give it?
Angel1320 10-Apr-12 9:14am    
Do one thing Copy content of master page and aspx page content.
I will try to solve it.

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