473,320 Members | 1,839 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,320 software developers and data experts.

How to call javascript functions, stored in a seperate .js file, in a jsp

I would like to know that how can I find which javascript file is being called when I call a javascript method in a jsp file? I know there is one way we specify this in the script tag. But what if we don't specify in this tag?

Thanks in advance.

Tushar Garg
Software Engineer
Aug 7 '07 #1
3 2831
acoder
16,027 Expert Mod 8TB
I would like to know that how can I find which javascript file is being called when I call a javascript method in a jsp file? I know there is one way we specify this in the script tag. But what if we don't specify in this tag?

Thanks in advance.

Tushar Garg
Software Engineer
Tushar, welcome to TSDN!

How else would you call an external Javascript file? What do you mean by "how can I find which javascript file is being called"? You reference an external .js file using script tags. Then you can use the functions in that file as you would if you had coded them within the page.

Can you show some example code?
Aug 7 '07 #2
I agree with what you are saying but I wanted to know if there is any other way to call a javascript functiion from an external javascript file without specifying its path/name in the script tag.
Aug 7 '07 #3
acoder
16,027 Expert Mod 8TB
I agree with what you are saying but I wanted to know if there is any other way to call a javascript functiion from an external javascript file without specifying its path/name in the script tag.
You could use Javascript to dynamically load scripts as and when required, but that would still require you to specify the path/name for the src property of the script tag.
Aug 7 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mariusz | last post by:
I want to write function to call another function which name is parameter to first function. Other parameters should be passed to called function. If I call it function('f1',10) it should call...
5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
7
by: priya.tweety | last post by:
How to call a js file from another js file?
8
by: Maverick | last post by:
I want to group all the javascript functions into a file named MiscFunc.js in a asp.net project. ======================================== e.g. In MiscFunc.js function dummyFunc(var1, var2) {...
12
by: Iddo | last post by:
Hi, I am having a strange problem... I have an HTML file which has 2 script tags: 1) <script language="javascript" id="ABC" src="ABC.js" /> 2) <script id="general" language="javascript">...
6
by: pronerd | last post by:
Hi, I am trying to dynamically set an event handler across frames. I have no problems setting properties across frames doing something like parent.ToolMenuFrame.location.href =...
6
by: SteveW | last post by:
I'm working with ASP.NET 2.0 and Javascript. I started out OK by attaching the JS code to the object in the PageLoad(). Note that rbInputStyle is a RadioButtonList. ...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.