Computing.Net > Forums > Web Development > calling VBScript function

calling VBScript function

Reply to Message Icon

Original Message
Name: rohnds
Date: December 7, 2004 at 03:20:11 Pacific
Subject: calling VBScript function
OS: xp
CPU/Ram: 256
Comment:

I have written a couple functions in VBScript in my index.html file.

Now I want to use these functions in my other pages without cutting and pasting the code in each of the pages I write. Is there way to call these VBScript function from an index an external files just like the CSS code we call from an external file.

Any help would be appreciated.

Rohn


Report Offensive Message For Removal

Response Number 1
Name: abc123456789
Date: December 7, 2004 at 12:13:19 Pacific
Subject: calling VBScript function
Reply: (edit)

I may be wrong but I imagine it can be done in a similar fashion to JavaScript, i.e. an external VBScript file.


Report Offensive Follow Up For Removal

Response Number 2
Name: abc123456789
Date: December 7, 2004 at 12:24:48 Pacific
Subject: calling VBScript function
Reply: (edit)

Sorry I didnt read the question properly.

It can be done in the same way as an external CSS or JavaScript file.

<script language="VBScript" src="filename.vb"></script>

Put this code into the HEAD section of the html and then the vbscript functions can be called as normal.

I hope this makes sense


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: calling VBScript function

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software