[Solved] String concatenation in JS function called from LC
Posted: Thu Apr 04, 2013 7:03 pm
Dear experts
I am using LiveCode's browser support, to display Maths. I make calls to JavaScript functions and some of these functions take arguments. One of the JavaScript functions must append string data to its arguments, but fails to do so for no appearent reason. The concatenation only fails when the function is called from my LiveCode app. It works without a problem if the function is called from outside of my LiveCode app.
The LC documentation says that LC internally treats the arguments as null terminated strings. Could that be the cause of the problem? How can it be fixed? It should be noted that my dev environment is Microsoft Windows 8.
Thanks in advance
Cairoo
Edit: I've created and attached a sample project to demonstrate the problem. Please have a look.
I am using LiveCode's browser support, to display Maths. I make calls to JavaScript functions and some of these functions take arguments. One of the JavaScript functions must append string data to its arguments, but fails to do so for no appearent reason. The concatenation only fails when the function is called from my LiveCode app. It works without a problem if the function is called from outside of my LiveCode app.
The LC documentation says that LC internally treats the arguments as null terminated strings. Could that be the cause of the problem? How can it be fixed? It should be noted that my dev environment is Microsoft Windows 8.
Thanks in advance
Cairoo
Edit: I've created and attached a sample project to demonstrate the problem. Please have a look.