Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Location
    Sumter, SC
    Posts
    178
    Thanks
    10
    Thanked 4 Times in 4 Posts

    VBScript not executing in firefox/opera

    For some reason some vscripts I have written into a few of my pages wont fire when the page is opened in Firefox or Opera. Everything works flawlessly in IE but Firefox and Opera are giving me a head ache. Is there any reason these pages wont work in Firefox/Opera?

    Turn 2 Design - Online Quote Form

    Forgive the lack of content, I still have the site attached to the development db.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    Client-side vbscript only works in Internet Explorer. To make it interoperable for other browsers, you should convert it to JavaScript.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Location
    Sumter, SC
    Posts
    178
    Thanks
    10
    Thanked 4 Times in 4 Posts
    Seeing as the only javascript I "know" is what I can copy and paste for window pops and stuff...I have no clue how to convert it...and the page is primarily written in ASP/VBScript wouldnt it cause an issue to have partial javascript and vbscript??

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    What language you run on the server is irrelevant to what language you use for things to run in the browser. If you want something to run client side then it must be written in JavaScript/JScript unless you are using it on an intranet where everyone has IE.

    IE can only run VBScript and JScript and all other browsers can only run JavaScript. Fortunately there is a sub-set of JScript that is similar enough to JavaScript to make scripts that can run as both. There is no such equivalent for VBScript.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #5
    Regular Coder
    Join Date
    Mar 2006
    Location
    Sumter, SC
    Posts
    178
    Thanks
    10
    Thanked 4 Times in 4 Posts
    well then Im still back at the issue of not knowing how to convert it. and I'm not much of a "read and learn" type...I'm more of a "see and learn" type so listing off websites to visit wont really help =(


  •  

    Posting Permissions

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