Current location: Hot Scripts Forums » Programming Languages » ASP » Order of vbscript and javascript in ASP


Order of vbscript and javascript in ASP

Reply
  #1 (permalink)  
Old 06-03-04, 03:01 PM
marlin marlin is offline
New Member
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Order of vbscript and javascript in ASP

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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Website using Javascript and VBScript Apoc HTML/XHTML/XML 0 05-11-04 07:45 AM
External VBScript Dim in Javascript fs22 JavaScript 1 04-20-04 07:07 AM
Songs Rating...VBScript... shamal ASP 1 04-03-04 10:07 PM
Songs Rating...JavaScript & VBScript shamal JavaScript 0 04-03-04 02:14 AM


All times are GMT -5. The time now is 04:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.