Yes, it's actually a jsp page that uses some javaScript functions having some scriptlets inside the functions....how can I use this?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
Just to be clear: JSP is a server-side technology, while JavaScript is a client-side technology. JSP can't access JS, and vice-versa. What JSP can do is generate JS code in the web page it generates, and that JS code can call other JS code that gets included in the web page from an external JS file. If this doesn't address your problem, describe in more detail what you're stuck with.
Debashree Halder
Ranch Hand
Joined: Jul 27, 2005
Posts: 81
posted
0
Actually I'm stuck at the initial stage.Presently I'm having Javascript code inside script tag of html, which I need to shift in .js file....
it work fine in HTML file...if I shift it into .js file...it says "Object Expected" when I try to call the function.
please first and foremost help me to solve this problem...
Regards,
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
If it does not work when you move it from inline to the js file it usually means three things. Not linking the external file correctly, you put script tags inside of the external js file, or you did a bad copy and paste job and cut off some brackets or letters.