- <head>
- <script src="prototype.js" type="text/javascript"></script>
- <script src="jquery.js" type="text/javascript"></script>
- <script src="jquery.dataTables.js" type="text/javascript" ></script>
- <script type="text/javascript">
- jQuery.noConflict();
- jQuery(document).ready(function() {
- alert('document ready');
- CreateTable();
- });
- function CreateTable(){
- var oTable = jQuery('#example').dataTable({
- "bPaginate":true,
- "iDisplayLength": 50 ,
- "bLengthChange": false,
- "bFilter": false,
- "sPaginationType": "full_numbers",
- "bAutoWidth": false,
- "aoColumns": [
- {sWidth: '20px'},
- {sWidth: '20px'},
- {sWidth: '30px'},
- {sWidth: '50px'},
- {sWidth: '50px'},
- ],
- "oLanguage": {
- "sLengthMenu": "Mostrar _MENU_ rexistros por paxina",
- "sZeroRecords": "Non existen rexistros",
- "sInfo": "Mostrar de _START_ a _END_ de _TOTAL_ rexistros",
- "sInfoEmtpy": "Mostrar de 0 a 0 a 0 registros",
- "sInfoFiltered": "(filtrado de _MAX_ rexistros totais)",
- "sSearch": "Procurar" ,
- "oPaginate":{
- "sNext": "Seguinte",
- "sFirst": "Primeiro",
- "sPrevious":"Anterior",
- "sLast":"Ultimo"
- }
- }
-
- });
- }
- </script>
I got my .js's in the same directory as my jspx file, and the alert ('document ready') is never shown.