File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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.

Thanks
Shivakanth.T
[ 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
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Regarding Java Script