Why is this not working??

Why is this not working??

jlopes151jlopes151 Posts: 8Questions: 0Answers: 0
edited December 2012 in General
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



Insert title here

@import "css/demo_page.css";
@import "css/demo_table.css";





$(document).ready(function() {
console.log('In the Doc ready');
// should reorder the table
var oTable = $('#theTable').dataTable({
"sDom" : 'Rlfrtip',
"oColReorder": {
"aiOrder": [2,0,1]
}
});

});




In the DataTables Web App




Product
Model
Cost




Hand Saw
Shark
$12.00

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Please link to a test case: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read . It looks like you might be getting 404 errors, but a test page would tell us that immediately.

    Allan
  • jlopes151jlopes151 Posts: 8Questions: 0Answers: 0
    I'm getting errors in the dataTables.js, and the script tag makes use of an html5 attribute but the doctype is html 4.
  • jlopes151jlopes151 Posts: 8Questions: 0Answers: 0
    Found there are problems with this site. There are errors in the examples. the meda tag of the colOrder example has a semicolon were there should a double quote as in


    I have to admit that I missed the errors, also there is an html 5 attribute class in the when the page identifys as an html 4. The test code for the colOrder doesn't work, its missing the scripts to perform the colOrder.

    Not sure if the site is put through a QA process. It should if DataTables id going to ask for some form of donatation, a professionals to use the libraries.
  • pmccannpmccann Posts: 9Questions: 0Answers: 0
    Are you deliberately being unpleasant? Your barely discernible "errors" turn out to be largely in your own head. ColReorder is a plugin: the initialisation code doesn't show how to include the plugin, so a "professional" such as yourself should probably try something astonishingly exotic like, oh I don't know, "view source" on any example page. And see that it's a simple call to import the plugin. Yes, let's read that word again: it's an Extra, a *plug* *in*. I'm surprised you didn't point out that the initialisation code also lacks opening and closing html and head/body tags.

    In addition, there is nothing wrong with the meta tag you quote: maybe try searching for a couple of seconds before so publicly exposing your lack of knowledge?

    As far as professionalism of the site goes, I'm happy to say that both the DataTables product and the support Allan provides clearly outshine that of any similar sites I'm familiar with. And, quite astonishingly, it's pretty much all done for donations.

    In short: please put your own posts through some sort of QA process. And apologies for my grumpiness to anyone else reading this!
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    I'm closing this discussion now.

    @jlopes151 - If you have a specific support request, please open a new thread with a link to a test case showing the issue so we can address it. The same applies to bugs that you might find on this site or anywhere else in my software.

    @pmccann - Thank you for your support :-).

    Regards,
    Allan
This discussion has been closed.