jquery

CSPro News
Forum rules
New release: CSPro 8.0
Post Reply
RAKOTOVAO
Posts: 29
Joined: February 12th, 2020, 5:57 am

jquery

Post by RAKOTOVAO »

Bonjour,

Pourquoi les boutons export csv excel et pdf de jquery ne marche pas avec le html wiewer de CSPro sur android alors que sur windows ça fonctionne trés bien.

Merci
Gregory Martin
Posts: 1774
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: jquery

Post by Gregory Martin »

Are you using a local copy of the jQuery .js file? That is, one stored on the Android device? If so, this may be a problem with paths with the HTML viewer unable to access this file? Can you try using a remote one, like this:

https://ajax.googleapis.com/ajax/libs/j ... ery.min.js

Does it work in this case? If so, then we can look into ways to get this to work on your Android device.
RAKOTOVAO
Posts: 29
Joined: February 12th, 2020, 5:57 am

Re: jquery

Post by RAKOTOVAO »

Hello,
I tried with the following links:

<script type = "text / javascript" src = "https://code.jquery.com/jquery-3.5.1.js"> </script>
<script type = "text / javascript" src = "https://cdn.datatables.net/1.10.25/js/j ... les.min.js"> </script>
<script type = "text / javascript" src = "https://cdn.datatables.net/buttons/1.7. ... ons.min.js"> </script>
<script type = "text / javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/ ... zip.min.js"> </script>
<script type = "text / javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/ ... ake.min.js"> </script>
<script type = "text / javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/ ... s_fonts.js"> </script>
<script type = "text / javascript" src = "https://cdn.datatables.net/buttons/1.7. ... ml5.min.js"> </script>
<script type = "text / javascript" src = "https://cdn.datatables.net/buttons/1.7. ... int.min.js"> </script>

the page and buttons are displayed, but the export buttons still do not work.
RAKOTOVAO
Posts: 29
Joined: February 12th, 2020, 5:57 am

Re: jquery

Post by RAKOTOVAO »

Hello,

I created an HTML file without using the report () function, but with filewrite (), because I noticed that the googlechrome on my Android cannot read the htmls created from the report () function.

I also got on the internet a function (js) for exporting a table to excel other than the jquery function:

I noticed that the export to excel does not work with the CSPRo viewer but works very well if I open the html file with the googlechrom on Android.

Is there a CSPRo function that I can use to open my file directly with Google chrom instead of using CSPRO's viewer?
Gregory Martin
Posts: 1774
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: jquery

Post by Gregory Martin »

Do you have the latest version of CSEntry? We updated the application earlier this week to address an issue with the web viewer not being able to read HTML created in your application. This might solve the issue you had with the report function.

Regarding the JavaScript, the only way we'll be able to see what is happening is if you share the HTML/JavaScript code. You can email it to cspro@lists.census.gov.
Post Reply