Results 1 to 6 of 6

Thread: [RESOLVED] No VBScript code working (browser scripting is enabled)...

  1. #1

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    Resolved [RESOLVED] No VBScript code working (browser scripting is enabled)...

    Code:
    <html>
    <head>
    <title>Site under maintenance</title>
    </head>
    
    <script type="text/vbscript"><!--
    Msgbox "test"
    // --></script>
    
    <frameset rows="1,*" frameborder=0 framespacing=0 border=0>
    <frame name="alpha" src="about:blank">
    <frame name="beta" src="about:blank">
    </frameset>
    <noframes>
    <body>Your browser does not support frames.</body>
    </noframes>
    </html>
    The msgbox won't appear in either of the browsers I use (Chrome & Firefox).
    Last edited by deathfxu; Sep 5th, 2009 at 04:29 PM.

  2. #2

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    Question Re: Simple msgbox won't appear

    For troubleshooting I tried to run this code on both browsers:
    Code:
    <html>
    <head>
    <title>Site under maintenance</title>
    </head>
    
    <script language="VBScript">
    Msgbox "test"
    </script>
    
    <body>dfhsghfgjgdjsdfjvbj</body>
    
    </html>
    No msgbox... No errors... No idea why.


    So next I tried this:
    Code:
    <html>
    <head>
    <title>Site under maintenance</title>
    </head>
    
    <body>dfhsghfgjgdjsdfjvbj
    
    <script language="VBScript">
    A = 1
    A = A + 2
    document.write(A)
    </script>
    
    </body>
    
    <script type="text/vbscript">
    A = A + 2
    document.write(A)
    </script>
    
    </html>
    Nothing, again... No numbers on the screen and no error messages.

    Code:
    <html>
    <body>
    <script type="text/vbscript">
    document.write("Hello World")
    </script>
    </body>
    </html>
    Even this did nothing. Why in the #$&@ is nothing working?!


    EDIT: Scripting is enabled in both browsers and javascript works fine. But no VBScript is working at all...
    Last edited by deathfxu; Sep 5th, 2009 at 04:17 PM.

  3. #3

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    Question Re: No VBScript code working (browser scripting is enabled)...

    I downloaded IE8, and oddly enough all the code ran like it should... Both Google Chrome and Mozilla Firefox won't run any of the code. Any idea why this could be?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: No VBScript code working (browser scripting is enabled)...

    Sure... IE is the ONLY browser that supports VBScript client side....

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Hyperactive Member deathfxu's Avatar
    Join Date
    Mar 2009
    Location
    USA
    Posts
    279

    Re: No VBScript code working (browser scripting is enabled)...

    That's ridiculous. It pretty much takes VBScript off the table when looking for coding solutions to problems (if accessibility is an issue at all)...

    Talk about disappointing.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: No VBScript code working (browser scripting is enabled)...

    Why do you think 99&#37; of all client side scripting is Javascript?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Click Here to Expand Forum to Full Width