Connecting Tech Pros Worldwide Help | Site Map

Call external functions

  #1  
Old January 24th, 2007, 01:45 AM
kirkox
Guest
 
Posts: n/a
Hi guys, this is my first post. I am a newbie, of course.

The question is really simple:
how can I call functions from an external file in a new js file and
work with its method?

Thank in advance.
Bye

  #2  
Old January 24th, 2007, 02:55 AM
Benjamin
Guest
 
Posts: n/a

re: Call external functions




On Jan 23, 7:40 pm, "kirkox" <mircovel...@gmail.comwrote:
Quote:
Hi guys, this is my first post. I am a newbie, of course.
>
The question is really simple:
how can I call functions from an external file in a new js file and
work with its method?
First make sure you have a tag like this:
<script type="application/x-javascript"
src="path/to/my/js.js"></script>
Then you can just call the function like it was in the same file!
Quote:
>
Thank in advance.
Bye
  #3  
Old January 24th, 2007, 05:15 AM
cwdjrxyz
Guest
 
Posts: n/a

re: Call external functions




On Jan 23, 8:42 pm, "Benjamin" <musiccomposit...@gmail.comwrote:
Quote:
On Jan 23, 7:40 pm, "kirkox" <mircovel...@gmail.comwrote:Hi guys, this is my first post. I am a newbie, of course.
>
Quote:
The question is really simple:
how can I call functions from an external file in a new js file and
work with its method?First make sure you have a tag like this:
<script type="application/x-javascript"
src="path/to/my/js.js"></script>
The above is correct. However I caution you not to also add the opening
and closing script tags to your external script file, or the script
will not work. This is a very frequent error made by those using
external script files for the first time.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating DLL for PowerBuilder as external functions NewBieDev answers 1 January 25th, 2007 11:35 AM
Accessing external functions from Access... Lyndon answers 1 October 4th, 2006 11:25 AM
Calling external functions Tim Greenwood answers 6 December 9th, 2005 09:24 AM
Compiler behavior : Inlining external functions Raphael answers 5 November 14th, 2005 05:20 PM