dataTables Editor Trial

dataTables Editor Trial

carlskiicarlskii Posts: 4Questions: 0Answers: 0
edited April 2013 in General
Hi,

I downloaded the 14 day trial for DataTables but none of the examples/docs work because the links to the dependancies seem to be incorrect!

Is this a know issue!

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Not a know issue I'm afraid. Have you got through the install tutorial here: https://editor.datatables.net/tutorials/installing ?

    If you have, could you link me to the page you are using so I could take a look and see what is going wrong?

    Thanks,
    Allan
  • carlskiicarlskii Posts: 4Questions: 0Answers: 0
    Yep, I followed the tutorial. Unzipped and uploaded entire directory to my web server. Then navigated to.

    http://localhost:8080/Editor-1.2.3-Trial/examples/index.html

    It looks like the references to the styles and .js file are probably incorrect!

    It will be difficult to link toy to the page because I'm behind a firewall.

    Regards,

    Carl
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Hi Carl,

    From the url itself, it would appear that the Editor trial directory is not inside the DataTables `extras` directory. This is required for the paths to work out of the box. Obviously you can change them as you wish, but if you follow the following steps from the tutorial, the paths should all resolve correctly:

    [quote]
    So the first thing to do is to download the latest DataTables package from the DataTables download page and put it on your web-server:

    1. Download the latest DataTables package by clicking on the large blue button on the DataTables download page
    2. Once the download has completed, unzip the file that was downloaded
    3. Now upload the whole DataTables directory to your web-server (using FTP, SSH or anything else).

    As DataTables has no server-side dependencies for a basic install, this is all that is needed! Now you can load http://myWebSite.com/DataTables-1.9.4/examples/ in your web-browser and see the DataTables examples running.

    The next step is to repeat the above for the Editor package:

    1. Download the latest Editor package by clicking on the large blue button on the Editor download page
    2. Once the download has completed, unzip the file that was downloaded
    3. Now upload the Editor directory to your web-server into the DataTables-1.9.4/extras directory that was created when you uploaded the DataTables package.
    [/quote]

    You should send up with a url such as `http://localhost:8080/DataTables-19.4/extras/Editor-1.2.3-Trial/examples/index.html`

    Regards,
    Allan
  • carlskiicarlskii Posts: 4Questions: 0Answers: 0
    Cool that sorted it.

    Just getting the following alert now when I navigate the pages:

    The page at localhost:8080 says:
    DataTables warning (table id = 'example'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Good to hear that sorted out the path issue.

    The issue you are seeing now is caused by the return from the server being invalid JSON.

    Have you updated the configuration file to be able to read from your database (i.e. set the user name and password, db name etc)? Have you also imported the SQL schema for the Editor demo database?

    Finally, are you using PHP v5.3 or newer?

    Allan
  • carlskiicarlskii Posts: 4Questions: 0Answers: 0
    Arr - OK. No not yet. Will do that next thanks for your help.
This discussion has been closed.