Comments (3)
That functionality already exists.
That's what user defined callbacks are for.
Basically, you attach a function to the onParseEntry hook that checks the
column number and skips the ones you specify. Check the column number through
the state.colNum parameter. You can skip an entry by returning false.
Give the documentation for Hooks a read:
https://code.google.com/p/jquery-csv/wiki/Hooks
Original comment by [email protected]
on 20 Mar 2013 at 11:13
- Changed state: Invalid
from jquery-csv.
Hey guys,
thanx so much for the answer, in my current work rush i just did a
browser search on the lengthy overview page for "callback", browsed the
options and methods and bottom, even went to the API page for the
toArray Method, but obviously failed to scroll up and read the whole
text before opening the ticket. Sorry for that and a big tip of hat for
this excellent library!
Cheers - Phil
------------------------------------------------
change I.T. - Software Development & Consulting
Norderstr. 97 24939 Flensburg
MOBILE 0176-50128772 SKYPE philipp.austermann
https://www.xing.com/profile/Philipp_Austermann2
------------------------------------------------
Bankverbindung GLS Bank UST-IdNr.
KTO 2019504400 DE266182829
BLZ 43060967
Original comment by [email protected]
on 21 Mar 2013 at 6:07
from jquery-csv.
Your welcome.
I changed the front page to say hook/callback and added another wiki link to
the documentation.
Don't fret about opening a ticket, that's what it's there for. Without your
feedback I wouldn't have known that changes should be made to make the
documentation easier to find. The quality of this project is a direct result of
a lot of good feedback from users.
Thanks for the contribution and for the appreciation.
Original comment by [email protected]
on 21 Mar 2013 at 8:29
from jquery-csv.
Related Issues (20)
- doesn't seem to recoginse end of line properly in some cases. HOT 1
- CR line ending are not well treated HOT 1
- Typo in basic-usage.html (fixed in 0.8.0) HOT 2
- Enhancement: Parse CSV in a thread using settimeout HOT 3
- 배열의 기본 속성값(remove)이 포함 됩니다. HOT 1
- Karma test fails - HOT 2
- Failures on test.html file HOT 2
- colNum not reset when onParseValue callback called
- Export $ globally in browser when not already set
- CSVDataError: Illegal State - Only in IE HOT 3
- Using Zurb Foundation 3 causing an error HOT 3
- $.csv.toObjects return garbage value HOT 3
- Parse doesn't handle quotes in the CSV, even if escaped HOT 3
- Hooks relying on a return value of false to skip entries makes parsing values that resolve to false impossible
- CSV file created with Excel for Mac fails HOT 3
- Uncaught ReferenceError: require is not defined
- Generate Motion chart HOT 1
- Options arg not really optional? HOT 2
- TypeError: csv.replace is not a function
- Data Format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-csv.