*Uncaught TypeError: strMid.substr is not a function.
line 13 column 91
Being generated in the following test program. If I remove the “mid” statement, there is no error. It looks like “m” is coming in as NOT a string??? If not a string, how do I convert “m” from whatever it is to a string?
When I first used If typeof(m) == "object" Then Return I got an error message saying the “Return” was not defined… but when I used “return” (NOT capitalized), it worked correctly… thank you for that, the wiki documentation example needs to be changed.
And when I ran it (same program as uploaded on here) but with the code you suggested… clicking on hamburger #1 opened the hamburger and clicking on an entry (#3) jumped to that entry… Oh Joy!
But a second click on an entry (#2) from Form3 resulted in the same error that I first identified at the start of this thread.
hfunc.js:13 Uncaught TypeError: strMid.substr is not a function
at Mid (hfunc.js:13)
at FuHamburger (code.js:10)
at HTMLDivElement.Hamburger3.onclick (code.js:24)
Mid @ hfunc.js:13
FuHamburger @ code.js:10
Hamburger3.onclick @ code.js:24
I have no idea what this means nor what to do about it.
I’ve reloaded the test program… Test_Hamburger.nsx (30.0 KB)
Found it… Must have the ‘If typeof(m) == "object" Then return’ code immediately after the opening of the Hamburger… I hadn’t put it on Form2 nor Form11