http://pytools.webfactional.com/capstoneTemp/jQuery的數據表打破鏈接頁面這裏
所以,我實現了jQuery的數據表上使用它從MySQL拉低數據的PHP服務器端處理文件,這個例子。可能並不真正相關,但我認爲id分享這些信息。我遇到的問題如下:
登錄按鈕用於工作。現在它只是重新加載相同的索引頁面。當我手動鍵入,因爲它表明,當我將鼠標懸停在鏈接地址,
http://pytools.webfactional.com/capstoneTemp/signIn.html
此頁面加載。但是當我點擊它只是重新加載index.html頁面並附加一個「?」到URL。我使用JavaScript使用了在體是底部如下:
<script src="js/jquery-1.11.0.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-switch.js"></script>
<script src="js/DataTables.js"></script>
<script src="js/jquery.dataTables.js"></script>
<script>
$(document).ready(function() {
$('#login').submit(function(){
console.log($(this));
return false;
});
$('#prettyTable').dataTable({
"aLengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]],
"iDisplayLength" : 10,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "listOwners2.php"
});
});
</script>
什麼真正困擾我的是我以前使用的數據表中的另一項任務,並且沒有任何像這樣的問題,這表現這裏
http://collegedata.pytools.webfactional.com/question9
該頁面中的導航鏈接仍然有效。
如何才能進入我的PHP應用程序的登錄頁面?
你確定它的datatables這打破了導航鏈接? ----我使用數據表和theres沒有問題與我的鏈接。 –
您正在導入DataTable兩次。 ' ' – bingorabbit
'刪除第一個,它導致錯誤。 – bingorabbit