473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Using external js fil

KS
I have a folder where i got all my external javascript.js files saved.
Using the external.js files in my .jsp files works fin by:

<script language="JavaScript" src="/PlexSysWeb/javascript/disableObjekt.js">

</script><script language="JavaScript"
src="/PlexSysWeb/javascript/respons.js"></script>

I want to use/call a method in external disableObjekt.js inside a metode in
respons.js.

How do I do this. I could copy and paste the code, but im going to this a
lot, so if i change the code i have copy and paste

it would be alot of work.

Thanx in advance



Jul 20 '05 #1
2 4222


KS wrote:
I have a folder where i got all my external javascript.js files saved.
Using the external.js files in my .jsp files works fin by:

<script language="JavaScript" src="/PlexSysWeb/javascript/disableObjekt.js">

</script><script language="JavaScript"
src="/PlexSysWeb/javascript/respons.js"></script>

I want to use/call a method in external disableObjekt.js inside a metode in
respons.js.

How do I do this. I could copy and paste the code, but im going to this a
lot, so if i change the code i have copy and paste

it would be alot of work.


Simply call the function, any script loaded after disableObjekt.js can
do that.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Martin Honnen <Ma***********@t-online.de> wrote in message news:<3f********@olaf.komtel.net>...
KS wrote:
I have a folder where i got all my external javascript.js files saved.
Using the external.js files in my .jsp files works fin by:

<script language="JavaScript" src="/PlexSysWeb/javascript/disableObjekt.js">

</script><script language="JavaScript"
src="/PlexSysWeb/javascript/respons.js"></script>

I want to use/call a method in external disableObjekt.js inside a metode in
respons.js.

How do I do this. I could copy and paste the code, but im going to this a
lot, so if i change the code i have copy and paste

it would be alot of work.


Simply call the function, any script loaded after disableObjekt.js can
do that.

I don't claim to understand the lifetime and visiblity of functions in
JS, but in my tests, what seems to matter is when a function is
called. For one function to call another, both must be loaded, but the
order does not seem to matter.

Is this wrong?

This surprised me. Am I mistaken?
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Helmut Zeisel | last post by:
I want to build a static extension of Python using SWIG and VC++ 6.0 as described in http://www.swig.org/Doc1.3/Python.html#n8 for gcc. My file is testerl.i: ========================= %module...
12
by: Charles Law | last post by:
This is a bit of a vague question, but I am just starting on this, and wonder if anyone has ideas of where to start. I have a program that controls some external equipment. It sends messages in...
0
by: XSD-optimist | last post by:
I am trying to generate the classes for an XSD schema using the Microsoft XSD Object Code Generator (XSDObjGen). I am having a schema that contains the definition of the following: 1. a complex...
2
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
3
by: Leith Bade | last post by:
I have been trying to use the new Visual C++ Toolkit 2003 with the VC6 IDE I set up the executable, inlcude, and library directories to point to the new compilers I had to fix a few errors in the...
2
by: praveenkojha | last post by:
Hi, I am novice in C++ and am more of a C# guy. I have a third party C++ code which I want to create and use as a managed assembly. I have created a .NET win32 application and have copied this...
1
by: steveBelfast | last post by:
Having trouble installing my 180 day Visual Studio 2005 trial disk. The CD that was sent is actually a DVD not a CD. My home PC only has a CD drive. I attempted to install on an external drive...
8
by: Bruce | last post by:
I am using VB in Vs2005. Am I missing something or does VB not have the concept of "builds" (release/debug) like in VC? I wrote an assembly and I would like to have a debug version of the DLL...
1
by: Abdulla Herzallah | last post by:
Hi everyone I don't know if I am posting this to the right newsgroup but it is the closest I found, in case you think you can advice me to another newsgroup please feel free to do so. I am so...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips for using External tables. USING EXTERNAL TABLE ======================= 1.THE TABLE POINTS TO EXTERNAL FILE. IF DATA IS ALTERED IN THE EXTERNAL FILE,DATA...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.