SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem when I uploaded my website

    Ok, sorry about this, but i am an extreme newbie, i know next to nothing about codes, scripts etc... but i bought a domain from godaddy (mistake i think) then i bought their website software (website complete w/asp) then i made the site its about our car racing team, pretty small, only 8MB then it has its own FTP? so i can directly publish the site from the software, well I went and published it 2 days ago, and it said that i sucessfully published 8.3mb, and of course where to view it.........but when i view it (arrowmotorsports.com) only the flash intro page is viewable, then when you click "enter the site" button the following message comes up:

    Microsoft VBScript compilation error '800a0401'

    Expected end of statement

    /HomePage.asp, line 345

    imageStyle ="s6" serverPath ="//plugins.websitecomplete.com/wsc_images" protocol ="http:" If ucase(Request.ServerVariables("HTTPS")) ="ON" Then protocol="https:" DataSource ="FileDSN=c:\winnt\system32\dsn\plugins.dsn" Set DataConn =Server.CreateObject("ADODB.Connection") DataConn.Open DataSource
    -----------------^


    any help and i would be thankfull
    Eric

  2. #2
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    VBScript compilation error '800a0401

    Reason
    This error usually occurs when the default scripting language is set to VBScript in the site definitions but the script on the Web page is JavaScript.

    Solution
    The site definitions need to be adjusted so that the Scripting Language setting is consistent with the actual source code on the page. Specify the correct scripting language in the Application Server Info category in your site definitions. Another option to check is that the language directive at the top of the web page reads as either one of the following, depending upon the scripting language used.

    <%@LANGUAGE= "JAVASCRIPT"%>


    -or-

    <%@LANGUAGE="VBSCRIPT"%>


    Note: Server side VBScript and JavaScript code cannot exist on the same page. It is acceptable, however, to use VBScript as the server side scripting language and JavaScript as the client side scripting language on the same page.

  3. #3
    SitePoint Addict danfran's Avatar
    Join Date
    Jan 2005
    Location
    New York City
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont discount loco's theory, but...

    When you line up the characters in the error message..

    Code:
    imageStyle ="s6" serverPath ="//plugins.websitecomplete.com/wsc_images" rotocol ="http:" If ucase(Request.ServerVariables("HTTPS")) ="ON" Then protocol="https:" DataSource ="FileDSN=c:\winnt\system32\dsn\plugins.dsn" Set DataConn =Server.CreateObject("ADODB.Connection") DataConn.Open DataSource
    -----------------^
    ..and actually see what's going on here, you'll see that what mowerman is trying to do is execute about a million statements on the same line! (If he claims it was the text-editor's fault, I'll give.. )

    Dude, you have to put all yer statements on separate lines:

    Code:
    imageStyle ="s6" 
    serverPath ="//plugins.websitecomplete.com/wsc_images" 
         protocol ="http:" 
    If ucase(Request.ServerVariables("HTTPS")) ="ON" Then  
         protocol="https:" 
         DataSource ="FileDSN=c:\winnt\system32\dsn\plugins.dsn" 
         Set DataConn =Server.CreateObject("ADODB.Connection")
         DataConn.Open DataSource
    You also need this: END IF Make sure it's in there or you'll get errors.. I think the "compilation error" cut-off the rest of the code..

    Also, if you DO need to ram stuff together on a single line, then all you need is a colon between statements. For example, when debugging, I often use this:
    Response.Write SQL : Response.End

    -Dan
    Last edited by danfran; Feb 5, 2005 at 11:10.

  4. #4
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay Okay i think there is a mistake, all i did was buy the software, put a few pictures in and a couple of flash clips and published it, this is supposed to be a click and point program, i didnt write any code or anything??

    i bought 2GB space 200GB bandwidth, and godaddy.com's web biulding software, which says create pages and publish.........no writing of code

    I know i am uneducated about this

    THANK YOU ALL very much so far


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •