Coder Social home page Coder Social logo

Multiple calls to swf file about tabletools HOT 4 OPEN

datatables avatar datatables commented on July 20, 2024
Multiple calls to swf file

from tabletools.

Comments (4)

alesnav avatar alesnav commented on July 20, 2024

I think that it is loaded in a per flash button basis. So, do you have
three buttons (flash type buttons) in your datatable?
El 12/12/2014 18:25, "Jeromy French" [email protected] escribió:

I happened to notice in my application that the copy_csv_xls_pdf.swf is
getting called three times when datatables/tabletools are invoked. I put
together a jsfiddle to illustrate the issue
http://jsfiddle.net/jhfrench/6b74w/391/:

[image: Multiple calls to the same file]
https://cloud.githubusercontent.com/assets/1501167/5415872/825b7916-81f8-11e4-838c-a65c4756fc14.png

The same behavior can be observed from the TableTools documentation
https://datatables.net/extensions/tabletools/:
[image: Even from the official documentation]
https://cloud.githubusercontent.com/assets/1501167/5416022/9f5f7dfe-81f9-11e4-9455-7c274417b1f4.png

Why is this file getting loaded multiple times? It's particularly
problematic because the intial load of the file doesn't seem to be cached
by the browser for subsequent loads.


Reply to this email directly or view it on GitHub
#72.

from tabletools.

jhfrench avatar jhfrench commented on July 20, 2024

I do have three buttons (copy, excel, pdf). The tabletools documentation has 5 buttons, but calls the file 4 times (perhaps the "print" button doesn't invoke the flash file).

Even if this is the root of the multiple calls...is it necessary?

from tabletools.

 avatar commented on July 20, 2024

The swf file is indeed loaded once for each button. The SWF file is the same for the buttons, and I've never understood why the are multiple requests for the same file... Browsers just seem not to cache it.

Hmmm - looking at my examples with Chrome, for some reason, Chrome is sending:

Cache-Control:max-age=0

That might explain the problem, but not why it is sending that... Need more investigation I think!

(meanwhile we raise a glass to the day in the future when we can get rid of the Flash dependency here...)

from tabletools.

jhfrench avatar jhfrench commented on July 20, 2024

Cross-posted this to stackoverflow.com. Maybe one of those smart cookies can figure this out.

from tabletools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.