Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Data Tables(TableTools) - Export to CSV and PDF is not working jQuery Javascript

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have to export data using Data Tables to CSV and PDF. Buttons are displayed to export but not getting save dialog box when we click those buttons. I think it is because of, I have one more dialog box using jquery in my same JSP. Following is the code:




Help is appreciable. Save dialog box has to appear when we click on those export buttons.

Thanks,
Chaatna
 
Chandrasekhar Aadhanapattu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am answering my self.

The issue is just the context path of loading the swf(flash) file of Data Tables.

From the below code which is responsible for pagination/filtration, export etc.,



I have just changed a small snippet according to our project context as follows:

From:


To:


That's it. I hope it may be helpful to somebody.
 
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic