Comments (2)
I ran into the same problem and my solution is below. Hope this helps.
-
https://github.com/xsanisty/calx.js/blob/main/jquery-calx-2.2.8.js
-
Line 37 has an issue:
if (typeof Array.indexOf !== "function") {
-
The left side of the argument returns
undefined
. At least it returnsundefined
at the point where the file was loaded in my pages. Executing thistypeof Array.indexOf
from the dev tools browser console does return"function"
so my assumption is the file was loading before the brower's native indexOf function was there. The plugin is setting the prototype.indexOf for browsers that do not need it which causes the error ingtag.js
-
Change Line 37 to
if (!Array.prototype.indexOf) {
-
All done. Now the plugin only sets prototype.indexOf for browsers that actually need it. Which aren't very many and old ones like IE8 that nobody should be concerned about. I'm pretty sure gtag.js won't work in browsers that would access the code in this if block anyway.
from calx.js.
Thank you so much! This did the trick. I actually did it on the v1.x version of the plugin as well - been using this before 2.0 came along and I haven't converted the particular site over. MUCH APPRECIATED
from calx.js.
Related Issues (20)
- Server side sample is missing
- cell.calculate is not a function
- set zero previous row cell HOT 2
- input field cursor position options? HOT 1
- $('selector').calx('update') is converting cell values to strings internally (2.2.7) HOT 1
- Multiple sheets inoperable due to data-calx-identifier attribute collision
- Indirect cells containing a registered variable not working
- Data Format doesn't work for me.
- Doesn't work with Range Slider or Input Type Range?
- Custom Attribute for Value like data-cell and data-format.
- error on defaultFormat HOT 1
- IF Greater than error HOT 3
- Enhancement HOT 3
- Single Quotation Mark
- Concat With Format HOT 1
- When using TextArea value as a formula for a hidden field, the hidden field doesn't get updated on changing the textarea value
- Combine two excel sheets HOT 2
- Calx formula calculation
- IF greater than error on 2.2.8
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 calx.js.