javascript - Make Tablesorter work on Blogger -



i've run problem trying run jquery plugin tablesorter on blogspot blog. tried example on tablesorter page see if work @ all. wrote following general html of blog right before closing tag:

<script src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'/>  <script src='https://github.com/christianbach/tablesorter/blob/master/jquery.tablesorter.js' type='text/javascript'/> 


i added css directly blogs css well. , @ least seems working (apart background image arrows in it, seems more tied actual script rest of css, might indicator of script not working...)

then started page , kind of copy , pasted following it.

    <script type="text/javascript">$(document).ready(function(){$("#mytable").tablesorter();});</script><br /> <table class="tablesorter" id="mytable"><thead> <tr> <th>last name</th><th>first name</th><th>email</th><th>due</th><th>web site</th></tr> </thead> <tbody> <tr> <td>smith</td><td>john</td><td>jsmith@gmail.com</td><td>$50.00</td><td>http://www.jsmith.com</td></tr> <tr><td>bach</td><td>frank</td><td>fbach@yahoo.com</td><td>$50.00</td><td>http://www.frank.com</td></tr> <tr><td>doe</td><td>jason</td><td>jdoe@hotmail.com</td><td>$100.00</td><td>http://www.jdoe.com</td></tr> <tr><td>conway</td><td>tim</td><td>tconway@earthlink.net</td><td>$50.00</td><td>http://www.timconway.com</td></tr> </tbody></table> 


well, doesn't work. @ all. table there no possibility sort it. tried in both opera , firefox see whether browser specific doesn't work.
honest: jquery , javascript in general not strong suit things work if i'm following instructions. i'm bit @ loss here.
i've searched here found might missing css. there , more or less working. or fact blogger needs without spaces, tried automatically changed above.

any ideas?

if check in chrome developer tools, see this:

refused execute script 'https://github.com/christianbach/tablesorter/blob/master/jquery.tablesorter.js' because mime type ('text/html') not executable, , strict mime type checking enabled.

you linking webpage (complete of githubs navigation bar, metadata file, etc etc), not javascript. text file this: https://raw.githubusercontent.com/christianbach/tablesorter/master/jquery.tablesorter.js

if want work in chrome, need use rawgit correct mime type: https://cdn.rawgit.com/christianbach/tablesorter/master/jquery.tablesorter.js


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -