I already did. That was the first thing I tried when I saw it was wrapping the entire file's contents to a single line, because comments were basically commenting out the rest of the file from that point on. So I removed every comment, both single as well as multi-line ones, but that doesnt fix it.
Btw, the entire "javascript file" interface is broken:
Cannot upload existing js files. Even after I select th efile and hit upload, it just sits there and doesnt load the contents. Have to cope/paste to get the contents loaded.
If I make "small changes" to the file, it doesnt save those. Even when I delete some characters or add a line, the save button does nothing and if I close the file and come back to it, the changes are gone
I believe long js files dont work. Small ones seem to work but probably after a certain number of characters, it is unable to deal with the file.
As a workaround, I placed the js code into the event handler for a screen load, but I am a newbie and dont know how to call functions in that code from another handler. Is that something you can help with? For instance, if I have a function called foo() in the js code that gets invoked for a screen load, and then I want to call that function from a button press, how do I do that? Just calling foo() doesnt seem to work.
Thanks