VBScript, JavaScript, Internet Exploer, Netscape and Macs - Help & Advice Needed Please!

D

Debbie

Hi Everyone

I have designed an internet ordering web site for my clients using FrontPage
2003 and VBScript. Recently, several of them came back to me and said that
some of their customers could not use the web site. In each case, their
customers were using Macs and/or Netscape as the browser.

Does this mean that I will have to rewrite the entire web site and replace
all VBScript code with JavaScript? And if so, will the site then be
available to both Mac and Windows users, Internet explorer and Netscape? I
have never used JavaScript and when I have looked at code examples it didn't
look like a scripting language that I would be comfortable with! I am a
Visual FoxPro developer and found VBScript quite easy to use and understand.

Also, would it be possible (or make sense) to recode the web site so that it
could use either VBScript or JavaScript depending on the user's browser?

Thanks in advance - Debbie
 
P

p c

Vbscript on the client is supported by IE only. For client, use javacsript.

For script on the server like with ASP, you can use vbscript or
javasript. And it doesn't matter what browser they use because the
script is executed at the server. The default script language for ASP is
vbscipt.

For your last question. *I* think it would be difficult to implement.
And will bring up the same questions, which language to use and whether
to run at the client or the server.

...PC
 
D

Debbie

Well, I'm glad to hear that I don't have to rewrite all the ASP code!
That's good news at least.

So, I only need to deal with stuff client-side. I use external scripts so
I'm not sure whether or not they are considered client-side or server-side.
Sorry to appear so thick, but could you please tell me if, when I include
the following code/tag in my page web page, whether I am running the scripts
client-side or server-side:

<script language="vbscript" src="scripts/exit.vbs"></script>

Thanks for your help - Debbie
 
P

p c

That one is client based, using vsscript. It will run in IE, will be
ignored by other browsers. And it uses a linked (external) file for the
code, wich is supported by newer browsers.

If the scrip tag identifies the language as "javascript", it will be
supported by all browsers. It will run if the users have not disabled
scripting.

...PC
 
D

Debbie

Okay, think I understand now. Guess I'd better head to Barnes & Noble and
invest in a few good JavaScript books! Thanks for your help - much
appreciated.

Regards - Debbie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top