Simple example (DataTables package) works on JSFiddle but not locally

Simple example (DataTables package) works on JSFiddle but not locally

pythontologypythontology Posts: 3Questions: 1Answers: 0

I'm trying to run a simple example using the DataTables package. For some reason, my code runs on JSFiddle, but does not work locally (the buttons to export to CSV, etc. do not work).

Why could this be?

Here's the JSFiddle in question:
http://jsfiddle.net/9jf2k53p/

And the code can be found here: http://stackoverflow.com/questions/25597089/simple-example-datatables-package-works-on-jsfiddle-but-not-locally

Thanks very much for your help.

Answers

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    Are you running this from a local server? This issue is raised on your stackoverflow thread, but you don't say whether you dealt with it.

  • pythontologypythontology Posts: 3Questions: 1Answers: 0

    I tried running it with Flask using the posted code in StackOverflow -- does that not suffice?

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    I have no idea what Flask is. The question remains:are you running this from a local server? If you don't know, then you probably aren't. That would explain the problem.

  • pythontologypythontology Posts: 3Questions: 1Answers: 0

    I see. Flask is a web framework that allows you to configure a local server. The code is running on localhost, but I still don't get the desired result.

This discussion has been closed.