2013-08-18 59 views
0

任何人都可以告訴我爲什麼JavaScript不會在此頁面上運行?無法在此頁面上運行javascript。 (在所有其他頁面上工作)

我有相同的JavaScript文件鏈接到其他頁面,它運行完美。 我已經花了一些時間來弄清楚什麼是錯的,但似乎沒有任何工作。

任何人都可以幫我嗎?

<!DOCTYPE html> 
<html> 
    <head> 

     <link href="https://thepropaganda.co/dublin-app/static/styles/adminStyles/style.css"" rel=stylesheet type="text/css" media="all" /> 
     <script type="text/javascript" src="https://thepropaganda.co/dublin-app/static/js/SampleApp.js"></script> 


    </head> 

    <body> 

     <div class="navbar"> 
       <div class="navbar-inner"> 
       <div class="container"> 
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> 
        <span class="icon-bar"></span> 
        <span class="icon-bar"></span> 
        <span class="icon-bar"></span> 
        </a> 
        <a class="brand" href="https://thepropaganda.co/dublin-app/">RSVPme</a> 
        <div class="nav-collapse collapse"> 
        <ul class="nav"> 

         <li><a href="https://thepropaganda.co/dublin-app/admin/create_event">Create Event</a></li> 
         <li><a href="https://thepropaganda.co/dublin-app/admin/manage_events">Manage Events</a></li> 
         <li><a href="https://thepropaganda.co/dublin-app/admin/manage_events">Bookings</a></li> 
         <li><a href="https://thepropaganda.co/dublin-app/admin/test"> Test</a></li> 
        </ul> 
        </div><!--/.nav-collapse --> 
       </div> 
       </div> 
      </div> 
<div id="eventsTable" > 
    <table class="manageEventsTable" > 
     <tr> 
      <th>Name</th> 
      <th>Date</th> 
      <th>Guestlist</th> 
      <th>Cheaplist</th> 
      <th>Delete</th> 
      <th>Guestlist</th> 

     </tr> 
        <tr> 
       <td> <center> Propaganda Dublin - 24/08/13 </center> </td> 
       <td> <center>24-08-2013 </center></td> 
       <td> <center>0 </center></td> 
       <td> <center>2 </center></td> 
       <td> <center> 
            <a class="deleteEvent" href='https://thepropaganda.co/dublin-app/admin/event/id/8' ><img src="https://thepropaganda.co/dublin-app/static/resources/delete.png" width = '20' height ='20'> </a> 
        </center> 
       </td> 
       <td> <center> 
            <a href='https://thepropaganda.co/dublin-app/admin/guestlist/id/8' ><img src="https://thepropaganda.co/dublin-app/static/resources/download.png" width = '20' height ='20'> </a> 
        </center> 
       </td> 
      </tr> 

        <tr> 
       <td> <center> Propaganda Dublin - 31/8 </center> </td> 
       <td> <center>31-08-2013 </center></td> 
       <td> <center>0 </center></td> 
       <td> <center>1 </center></td> 
       <td> <center> 
            <a class="deleteEvent" href='https://thepropaganda.co/dublin-app/admin/event/id/10' ><img src="https://thepropaganda.co/dublin-app/static/resources/delete.png" width = '20' height ='20'> </a> 
        </center> 
       </td> 
       <td> <center> 
            <a href='https://thepropaganda.co/dublin-app/admin/guestlist/id/10' ><img src="https://thepropaganda.co/dublin-app/static/resources/download.png" width = '20' height ='20'> </a> 
        </center> 
       </td> 
      </tr> 


    </table> 
</div>  

     <!------ jQuery box ----> 
       <div id="confirmDialog" style="display: none;" > 
        <p style="font-size: 14px;" > 
         Are you sure you want to delete the event? 
        </p> 
       </br> 
       </div> 


     </body> 
</html> 
+0

你在控制檯中看到什麼? – SLaks

+0

這可能會幫助人們知道究竟應該是什麼工作。並顯示兩個頁面,一個工作,另一個。 –

+0

順便說一句,HTML5中不支持'center'標籤。 –

回答

2

正如你會看到如果你看錯誤控制檯,jQuery沒有定義。

相關問題