• Resolved somanyqs

    (@somanyqs)


    Hello-
    (still a) new user here…disclaimer is that I am searching this site before I post as best I can, and ordering WP, HTML and PHP 101 books to learn as quickly as I can so I don’t have to bug everyone! 😉

    I am trying to add table sorting javascript to my website, following the example shown here: http://yoast.com/articles/sortable-table/

    I am wondering if someone could help me get started in the right direction. I’m sure this is just simple stuff, like not putting the code in the right place or telling it where to find the javascript, etc.

    Right now my example table can be found at:
    http://criticalgolf.com/?page_id=83

    What I did (just guessing!):
    1. put the sortable_us.js file into my directory at
    …/public_html/wp-admin/js
    2. put the arrow-down.gif, arrow-none.gif and arrow-up.gif into
    …/public_html/wp-admin/images
    3. inserted the following code at the top of my page template file (page.php):
    <script type=”text/javascript” src=”sortable_us.js”></script>
    4. added the .odd and .even code at the bottom of my style.css file

    The table is appearing, but can’t sort…I’m experimenting as best as I can but if anyone has some tips I’m all ears (that includes books to get me up to speed on this stuff!)

    Thanks so much in advance!!
    J

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I get table sorting javascript running?’ is closed to new replies.