TableTools cdn?

TableTools cdn?

dnagirldnagirl Posts: 36Questions: 2Answers: 0
edited October 2012 in TableTools
Today I discovered that TableTools and the recently released jQuery-UI v1.9.0 have a major problem working together. I've resolved it by downgrading jQuery-UI to v1.8. But I would have liked to show you what was happening. Unfortunately, all of my webspace is IP-limited so I can't use DataTables Debug.

If TableTools were available by cdn like DataTables core is, I could replicate the issue on jsFiddle (http://jsfiddle.net/). Is there any intent to make TableTools available by cdn?

Thanks,
Jen

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    I'd be very interested to see that error.

    TableTools, has you have seen, isn't on any CDN, and there isn't a plan to make so yet, although that will likely change as DataTables progresses (v1.11's modularisation for example opens up options). However, you could use the file that sits on datatables.net for testing: http://datatables.net/download/build/TableTools.js . I would VERY strongly suggest to anyone reading this DO NOT use datatables.net as a CDN. It is not designed to be a CDN, and I might change the file locations in future site updates. So with that warning, its fine for a test like this :-)

    Allan
  • dnagirldnagirl Posts: 36Questions: 2Answers: 0
    What path should I put for sSwfPath when using http://datatables.net/download/build/TableTools.js ?
  • dnagirldnagirl Posts: 36Questions: 2Answers: 0
    edited November 2012
    I'm working on this again. I should have an example posted soon. But I *really* do need a valid value for sSwfPath. Using the default path, (see here: http://jsfiddle.net/aGGtb/4/) I only get the error "ZeroClipboard_TableTools is not defined"
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    That means you haven't loaded the ZeroClipboard.js file that is in the TableTools distribution. The minified version of TableTools concatenates the two files together, but if you are loading the full code then you need to load the ZeroClipboard.js file as well.

    Allan
  • dnagirldnagirl Posts: 36Questions: 2Answers: 0
    Alright, I changed TableTools to the minified version and I'm still getting the ZeroClipboard error. http://jsfiddle.net/aGGtb/5/ From looking at http://datatables.net/download/build/TableTools.min.js (admittedly difficult to read so I may have missed it) I do not see any code from ZeroClipboard.js. Is there a publicly accessible version of ZeroClipboard.js that I can use in a JSfiddle?
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hah - the nightly build is an exception to the rule I'm afraid. I was referring to the files in the distribution package.

    You can use these two files for testing:

    http://datatables.net/release-datatables/extras/TableTools/media/js/ZeroClipboard.js
    http://datatables.net/release-datatables/extras/TableTools/media/js/TableTools.js

    It is worth noting that I would say categorically do not use DataTables.net as a CDN! It is not designed for such access and will not perform well on any other site - indeed, maintenance on the server could take it offline or I might move file locations! Fine for testing (as long as bandwidth levels are sensible), but most certainly not suitable for production.

    Allan
  • dnagirldnagirl Posts: 36Questions: 2Answers: 0
    Thanks Allan.

    After much fiddling around and fair amount of blue air, I've figured out what the problem was. It turns out that my TableTools issue was a symptom not a problem. The issue is that jquery-ui 1.9 no longer allows for IE's atypical handling of basehref.
This discussion has been closed.