| Author |
How to call javascript functions from JSP
|
Fritz Largosa
Ranch Hand
Joined: Sep 12, 2005
Posts: 70
|
|
<script language='javascript'> function A(){...} function B(){...} </script> <% if (A > B) A();//how do I call this javascript function within JSP else B();//how do I call this javascript function within JSP %> Thanks.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Just write out the function to the page that you need. Eric
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56169
|
|
You can't. Please read this JavaRanch Journal article to find out why.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: How to call javascript functions from JSP
|
|
|