Page 1 of 1

jquery

Posted: July 12th, 2021, 4:20 am
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

Re: jquery

Posted: July 14th, 2021, 2:36 pm
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.

Re: jquery

Posted: July 29th, 2021, 7:18 am
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.

Re: jquery

Posted: July 30th, 2021, 5:22 am
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?

Re: jquery

Posted: July 30th, 2021, 2:33 pm
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.