Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to call function (javascript or vbscript) by using include file???

    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!


  • #2
    New Coder
    Join Date
    Aug 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •