Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Java Script

 
Shivakanth Thyagarajan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a thing to do with JSP, so off to the HTML/Javascript forum this goes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic