...

View Full Version : how to call function (javascript or vbscript) by using include file???



Why liew
08-16-2005, 01:07 PM
i am a student and now building the system and facing the problem by using include file.Because in my system have many form have the same function for validation so i need to write the same coding in my every form.So when i need update the function for validation then i need to change in every form! So if i can save the validation in 1 file,then will easy for update my validation!
So how to do that??????Can i have some easy coding for that!

Tq first for everyone reading my message!

:confused:

Cyberlord
08-16-2005, 03:35 PM
Hello,

create a new ASP-File and move your functions into this file. eg: functions.asp

Then include this file into your scripts with this command:

<!--#include file=functions.asp-->

This must be in the HTML-part of your script.


cheers



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum