| Author |
How to call a JSP file within a JavaScript file
|
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
I have a javascript program where when I click on a image on mouseup to fire of a function openDashboard that will fire of a page. document.write("onmouseUp=\"this.className='imgbout';openDashboard(1,1,1,1,1)""); This function, which is a javascipt function, is in another file a JSP file : detail2.jsp. What I need to know is how do you include a jsp file in a js file so that my js application can call the openDashboard function. Thanks for any help. Cheers Tony
|
 |
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
I have changed the code to be : document.write("onmouseUp=\"this.className='imgbout';parent.frames['detail']openDashboard(1,2,25,850,550)\""); Still cant get it to work. Trying to figure out the syntax.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
.....'detail']openDashboard..... should be .....'detail'].openDashboard.....
|
 |
 |
|
|
subject: How to call a JSP file within a JavaScript file
|
|
|