Cannot add DataTables.net javascript into Joomla 1.5

Posted by mfmz on Pro Webmasters See other posts from Pro Webmasters or by mfmz
Published on 2014-02-02T06:42:33Z Indexed on 2014/06/13 3:42 UTC
Read the original article Hit count: 277

Filed under:
|
|

I've been having this problem where i couldn't add Datatables.net javascript into my Joomla article. I have been trying to include it through Jumi.

To say that my editor strips of the tag is somewhat not right as I have been able to execute Google Chart API in Joomla which also uses javascript.

Any clue why?

The code is as below :

<link href="//datatables.net/download/build/nightly/jquery.dataTables.css" rel="stylesheet" type="text/css" />
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script src="//datatables.net/download/build/nightly/jquery.dataTables.js"></script>
        <script type="text/javascript">
    $(document).ready( function () {
    var table = $('#example').DataTable();
} );
</script>

© Pro Webmasters or respective owner

Related posts about php

Related posts about JavaScript