Properties
Category
English
Similar Topics
Statistics
Comments
6
Participants
3
Subscribers
27
Votes
1
Views
1532
Share
Not a Problem
When I run Javascript while I am editing using the offline version of Geogebra 5.0, the string length property requires the () at the end in order to (incorrectly) function properly, but when you upload the file to Geogebratube, it will only work when the () are removed. See code and comments below.
function ggbNoSpaces (s) {
snew = "";
slen = s.length(); // this code must be run when editing offline in Geogebra 5.0
// slen = s.length; // this code must be run when uploaded into GeogebraTube
for (i = 0; i < slen; i++) {
if (s.substr(i, 1) != " ") {
snew += s.substr(i, 1);
}
}
return snew;
}
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2021 International GeoGebra Institute
I don't think it's a bug.
that because all the variable will be treat as an "Object", not a "String。
so, you need add this statement at the beginning of the function "ggbNoSpaces":
here, in ggb5 is ok.
please post your file to check the problem.
What version of GeoGebra 5 are you using?
I don't think it's a bug.
that because all the variable will be treat as an "Object", not a "String。
so, you need add this statement at the beginning of the function "ggbNoSpaces":
Comments have been locked on this page!