<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.8.2/css/jquery.dataTables.css"> <script type="text/javascript" charset="utf8" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script> <script type="text/javascript" charset="utf8" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.8.2/jquery.dataTables.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/jquery.dataTables.min.js"></script>
http://www.asp.net/ajaxLibrary/CDNjQueryDataTables190.ashxis NOT the script - if the script for v1.9 is to be used from Microsoft's CDN as per your original post on this topic on January 25, this is the code:
<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/jquery.dataTables.min.js"></script>(or similar, depending on whether you wish to use the minified version or not) whereas including the link ending in '.ashx' as follows:
<script src="http://www.asp.net/ajaxLibrary/CDNjQueryDataTables190.ashx"></script>throws errors - OF COURSE!
<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/jquery.dataTables.min.js" language="javascript"></script>
<script type="text/javascript">
if (typeof jQuery.fn.dataTable == 'undefined')
document.write(unescape("%3Cscript src='/Scripts/jquery.dataTables.min.js'" + "type='text/javascript'%3E%3C/script%3E"));
</script>
Wich worked fine.if (typeof jQuery.fn.dataTable == 'undefined')
I did some measurement but it was faster with the localstorage then the CDN.
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.