Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes Regarding Java Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Regarding Java Script" Watch "Regarding Java Script" New topic

Regarding Java Script

Shivakanth Thyagarajan
Ranch Hand

Joined: Mar 28, 2005
Posts: 41
I have a Java Script function in my JSP, Can we invoke this function from a .js file. If yes please provide me the way.

[ March 05, 2006: Message edited by: Bear Bibeault ]
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Yes you can call in normal how you call a function which is in .js file. But if your JSP does not have that java script function then you will get Javascript error some thing like object not found.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Not a thing to do with JSP, so off to the HTML/Javascript forum this goes.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Regarding Java Script
It's not a secret anymore!