A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
linking to external js
subhanair girish
Greenhorn
Joined: Aug 12, 2008
Posts: 13
posted
Sep 02, 2008 01:13:00
0
I tried to write all my javascripts in an external js file.
But I am unable to make it work.
<script language="JavaScript" type="text/javascript" src="validation.js">
</script>
This is how I have written in my jsp page.
please help...
Akhilesh Trivedi
Ranch Hand
Joined: Jun 22, 2005
Posts: 1493
posted
Sep 02, 2008 02:07:00
0
Originally posted by subhanair girish:
But I am unable to make it work.
what did you do & what is happening? where is your jsp and where is your js. Check your folder-structures and paths.
Keep Smiling Always — My life is smoother when running silent. -paul
[
FAQs
] [
Certification Guides
] [
The Linux Documentation Project
]
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
I like...
posted
Sep 02, 2008 06:49:00
0
how did you
test
your js validation file?
please use Javascript Console in Firefox in case of error enquiry.
Saifuddin..
[Linkedin]
How To Ask Questions On JavaRanch
My OpenSource
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
13
I like...
posted
Sep 02, 2008 09:13:00
0
It's likely that your page-relative URL is failing. Please see the
JSP
FAQ on resource URLs to see how to properly reference external resources in a JSP.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: linking to external js
Similar Threads
Prototype Ajax.Request error - Function Expected Options
form action problem
javascript include src path not right
Javascript and the DispatcherServlet
Linking to so many jquery plugins
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter