


Dear experts
I am trying to manipulate styles in a HTML page using JavaScript. The JavaScript code works when I view the page in a browser outside of my app, but in my app it behaves unexpectedly, causing an error. It would seem like LiveCode Server alters the style elements, making it impossibly difficult to manipulate using JavaScript.
To verify that the JavaScript works in a browser outside of my app, I used the "Web console" in Mozilla Firefox and the "Console" tab of the Developer Tools in Internet Explorer, to call the changeFontSize JavaScript function like this:
changeFontSize('200');
My LiveCode project is attached. Please download it, unzip it, and have a look. The HTML page is called "TestPage.html".
I really need to create and apply styles programmatically. Any help would be greatly appreciated!
Thanks,
Cairoo
edit: I changed the title to show that the problem is solved.