Re: embedding VBScript in outgoing HTML - WeOnlyDo Discussion board

Re: embedding VBScript in outgoing HTML (General questions)

by John Baker, Wednesday, December 01, 2004, 05:43 (7096 days ago) @ wodSupport

Wow - that was a fast response! Thanks.

I might be asking a dumb question. I am an experienced VB programmer but I'm only just starting with HTML.

At the moment I'm trying to get familiar with using VBScript. I thought I would modify your sample code 2. Simple - manual response.

What I tried to do was use VBScript to add a MessageBox that would pop up as the browser started to display the HTML manually created in your sample. I can do this using Notepad to code a .htm file and then view it with the browser by adding (just after <HTML>):

<SCRIPT LANGUAGE=VBScript>MsgBox Hello World </SCRIPT>

So I changed your sample program to begin

resp = <HTML><SCRIPT LANGUAGE= VBScript >MsgBox Hello World </SCRIPT>
resp = resp & <font face=Verdana size=2>Welcome visitor from

This doesn't look right to me, and VB doesn't like it, but I don't know what to do.


John


Complete thread: