evanplaice / jquery-csv

A jQuery CSV parser plugin. Battle Tested | Optimized | 100% IETF RFC 4180 Complete
MIT License
764 stars 439 forks source link

Unable to get property 'toArray' of undefined or null reference #117

Closed wolfgangjt closed 5 years ago

wolfgangjt commented 5 years ago

When I am attempting to run the script in the exact way that the example file is run on our intranet site, I get the above error. I am using $.csv.toArray(input) which is the part that is erroring.

I am on IE11, ASP .NET 4.5, running the version of the script that is the one out there available, with jquery 1.10.2 (legacy system).

wolfgangjt commented 5 years ago

I removed the following lines from the .js file and it works now.

var $;

// to keep backwards compatibility if (typeof jQuery !== 'undefined' && jQuery) { $ = jQuery; } else { $ = {}; }

wolfgangjt commented 5 years ago

I removed the following lines from the .js file and it works now.

var $;

// to keep backwards compatibility if (typeof jQuery !== 'undefined' && jQuery) { $ = jQuery; } else { $ = {}; }