codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Include  Archive Import (Ellen) at 08:18 on Tuesday, May 20, 2003
 

Hi,

I have a file with all my javascript-functions in (howto.jsp). In each page I want to use a javascript-function I include the howto.jsp page. But can I just include the functions I need? Because each time he includes all the howto.jsp. Or do I have to separate the functions in separate files and include them?

Thanks!

  Re: Include  Archive Import (Scott) at 22:50 on Friday, August 08, 2003
 

When you include a jsp page, the whole thing will get loaded. If the page howto.jsp page is not dynamic, then you can just include it such that the user will not see the functions you implemented:

<script language=javascript src=howto.jsp></script>









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: how to write games on PDA
•  Stephen Arnold on real-time search
•  Javascript drag & drop - question about function
•  ASP.NET- is it possible to Restrict class
•  Re: File Formats
•  Re: very simple question
•  Re: title
•  Re: problem with eval function, please help me!
•  Re: I would like to put a column in an excel spreadsheet that reads +10/-10


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010