close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

VBScript compilation error '800a0401'

Thread began 4/18/2010 3:50 pm by Sally | Last modified 4/19/2010 10:15 am by Jason Byrnes | 3028 views | 4 replies |

Sally

VBScript compilation error '800a0401'

I just downloaded CSS Menu writer and am trying it out for the first time but got an error right away. The error displayed on the browser page is:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/CSSMenuWriter/cssmw/menu.asp, line 2

var WA_localRoot = "/RiverOfGod/";
---------------------------------^

When I go to menu.asp lines 1-3 are:

<%
var WA_localRoot = "/RiverOfGod/";
var WA_remoteRoot = "/RiverOfGod/";

That info is the correct directories so I'm not sure what to do. I tried inserting the menu in a blank page, and it loads/works fine then. The dreamweaver page I'm inserting it into loads fine before the menu is inserted.

Any help would be appreciated. Thank you.
Sally

Sign in to reply to this post

Sally

Solved it!

When I put <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> in the head of my dw page, it loads and works fine. There was other Java code on the page that was working fine, so I don't understand why, but I'm sure it makes sense to someone.

I'm just glad to know what to do. :)

Sign in to reply to this post

Jason ByrnesWebAssist

the code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>


tells the IIS server to use the javascript processing engine for ASP code, the default is to use the VBScript Engine.

when using ASP Javascript, you need to include that code at line of your pages to tell the IIS server which processing engine to use.

Sign in to reply to this post

Sally

Thanks for the explanation, Jason. So does this mean I need to be careful about having code that use VBScript on the same page or do they "play well" together?

Sign in to reply to this post

Jason ByrnesWebAssist

you should not switch between ASP javascript and ASP VBScript, choose one and stick to it.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...