I wrote an ASP application that uses only vbscript and it has been working fine. Now I need to add javascript that will allow users to format TEXTAREA. Once I added this javascript (which is downloaded from
http://www.interactivetools.com/products/htmlarea/), I got an error.
If I put my client-side vbscript block before the javascript, I got a warning symbol (exclamation mark) on the status bar when the page is refreshed. If I tried to format text in the TEXTAREA (which uses javascript), I got the following error message. Any event procedure that calls vbscript works just fine.
================================================
Error
A Runtime Error has occurred.
Do you wish to debug?
Line: 4
Error: Object required: 'this'
================================================
If I swap the order of the script - javascript first, I could format text in the TEXTAREA without any problem. But I got the following error message when initiating an event procedure (i.e. onclick - on different control) that runs vbscript.
================================================== ====
Error
A Runtime Error has occurred.
Do you wish to debug?
Line: 323
Error: Object doesn't support this property or method.
================================================== ====
How can I get this to work correctly? Any help is appreciated.