Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:23:53+00:00 2026-06-09T05:23:53+00:00

An old web application I recently have to work with is having an issue.

  • 0

An old web application I recently have to work with is having an issue. There is an input element that contains the following:

onClick="javascript:Run('**SomeFilePath.mdb**');"

What this is supposed to do is open a users respective .mdb file.

First off, there is no javascript Run function defined anywhere. I searched online because I thought maybe it’s an old javascript built-in, but I couldn’t find anything.

Second off, there IS a vbscript Run() function, that implements the described behavior, defined in the source code, but as far as I know javascript can’t call that other than via ajax, which as you can see isn’t what is happening.

The strange part is this works for some users!

If anyone could shed some light as to why I’d appreciate it!

EDIT: The only browser I’m dealing with is IE. I know there is an active-x way to open a file, which is what the vbscript Run() function I mentioned above is using.

Update: So after more investigation/research, it would seem like when IE doesn’t find the javascript Run() function it defaults to the vbscript Run() function that IS defined. However this only occurs on some versions of IE. Can anyone confirm this behavior?

Research links:

Comment referring to how IE defaults w/ scripting

Msdn article about using both script types in same page

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:23:55+00:00Added an answer on June 9, 2026 at 5:23 am

    Yes, you can run vbscript from javascript and vice-versa, i do it sometimes when one language doesn’t support something the other does.
    You can indicate in your script which is the default language in case you don’t specify it like .

    You can also specify it while calling the function like vbscript:functionname(“..”) or javascript:functionname(“..”)

    As you noticed there are cases where the browser gets confused and doesn’t find the function because he searches/executes the function in the wrong language.
    This behavior is influenced i suppose by version also but surely by in which order the logic flows in your script, if the browser first executes a javascript he tends to go further in this language in case of doubt.
    So to evade this

    1. don’t mix the two unless realy necessary, translate your vbscript function in javascript)
    2. try to always use javascript, vbscript is less good at handling DOM etc
    3. in case they are mixed, specify the correct scriptlanguage when you call a function
    4. when opening a script tag, also give the correct language like or

    So, specific, to solve your problem translate the vbsripts function to javascript and if not possible, call your function like onClick="vbscript:Run('**SomeFilePath.mdb**')"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old web application that's being migrated to a different system, and
I have in here an old web application written in ASP.Net 2.0 + AJAX.
We have a old Web Based application supported on browsers from IE6 to IE8
Age old question! When you have finished developing and testing your ASP.Net web application,
I have a old web application developed in .NET 1.0. How can I do
I have an ASP.NET 4 web application that references a SOAP web service. I
I have converted my old VS2008 Website to Web Application, now everything was working
In a web-based system I maintain at work that recently went live, it makes
I am currently working on a roughly 15 years old web application. It contains
I have an old ASP.NET web application on a server, which was developed in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.