Questions tagged [jquery-csv]

jQuery-csv is a jQuery plugin for parsing CSV data into JS arrays or objects, or for converting JS objects and arrays to CSV files.

59 questions
1
vote
1 answer

How to add new line in CSV generated by jQuery?

I have a list that needs to be generated as a CSV. Here it is: [101, true, P, b, br, 2020], [101, true, P, 20, br, 2020], [101, true, P, b, breach, 2020] And I wrote this to convert it: var link = document.createElement('a'); link.id =…
dani
  • 25
  • 5
1
vote
1 answer

Acessing JQuery-CSV Object and formatting it into a txt file

I have an incoming txt/csv file containing a lot of information (58 columns), basically I will need to work on a few information (just name and telephone number). So I must be able get the whole information, retrieve what I need from it and then…
Rezik
  • 31
  • 5
1
vote
4 answers

Looking up value from CSV and return result

I'm attempting to use Javascript to lookup a value in a CSV file and return it's corresponding value (basically what a VLOOKUP does in Excel) I've been able to follow some examples separately of pulling the CSV data into an array, and I've seen…
siers82
  • 23
  • 5
1
vote
0 answers

Integrating jquery-csv into Rails app, ES15 syntax causing issues

I have already implemented a csv import feature in my app using this plugin, and it works great! But recently I had to reinstall some of my assets and it appears the plugin has some recent additions that include ES15 syntax. My Rails 4 app isn't…
1
vote
2 answers

Trouble using jquery-csv library

As I am using React in ES6 and am using Jquery-CSV library, I was unable to import using var $ = jQuery = require('jquery'); require('./jquery.csv.js'); Found a way to import using import * as randomName from 'jquery-csv' Now how am I able to use…
Dhaval Jardosh
  • 7,151
  • 5
  • 27
  • 69
1
vote
2 answers

CSV file not reloading (Google GeoCharts)

I am loading csv file using https://github.com/evanplaice/jquery-csv. Everything works okay until I try to reload the .csv file and load new data into GeoCharts. I know its a problem with reloading the file but how to deal with it? Here is the…
1
vote
0 answers

Correct approach to get csv data through jquery

Well this question is all about to get the correct approach, to get the task done. I have a CSV file with first row as header and which has several columns as | price | quantity | sold type | adn so on .... and rest row containing values under…
Atal Shrivastava
  • 674
  • 1
  • 9
  • 35
1
vote
1 answer

Using jquery-csv with webpack?

I am using jquery-csv as part of my project. Currently I'm just loading the script in separately, but how do I use it with webpack? Or perhaps there are better options for reading CSV files these days? All I want to do is grab a CSV file and turn…
Richard
  • 62,943
  • 126
  • 334
  • 542
1
vote
0 answers

How to return an array within $("#filename").change() function in Javascript?

My code is basically trying to read data from a .csv file and return the file data into an array. Below is the $("#filename").change() function part: $("#filename").change(function(e) { var ext =…
Ron_LHY
  • 11
  • 2
1
vote
3 answers

Uncaught TypeError: Cannot read property 'toArrays' of undefined

I'm trying to get this code to work using the gae-init framework, which uses flask and google app engine. The code works fine if I run it all alone, with it all from this one file: Google Chart Example
user3687715
  • 137
  • 3
  • 11
1
vote
1 answer

Using jQuery to read a CSV to pass to the Google Visualization API

I am trying to create a map from data in a CSV using the geochart package of the Google Visualization API (https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart). The workflow is as follows: Convert CSV to array using…
Scott
  • 51
  • 5
1
vote
1 answer

Refactoring jQuery each loop on data object

I have a csv file converted to a jQuery object using jQuery CSV (https://github.com/evanplaice/jquery-csv). Here is the code for that: $.ajax({ type: "GET", url: "/path/myfile.csv", dataType: "text", success:…
joshuaiz
  • 415
  • 4
  • 13
1
vote
1 answer

Return subset of object using jQuery CSV

I'm using jQuery CSV to parse a .csv file on my web server. I've got that working using a demo file with a list of countries with additional fields (Common Name, Capital, Country Code, etc.). From there, I'm using a lookup function found here:…
joshuaiz
  • 415
  • 4
  • 13
1
vote
1 answer

ReferenceError: CSV is not defined

I am using the jquery.csv-0.71.min.js lib to load a csv file and convert it to an array. However, when loading my webpage:
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
1
vote
1 answer

How to read local csv file with jquery csv without a file prompt

I want to locally open and handle a .csv file in my browser just like i did with a .xml (getting specific column values). I got to jquery-csv and i'm able to use the Client-Side File Handling example. Downside is i have to use the "choose file"…
bronze
  • 79
  • 7