Author
Java Plug-in misbehaives
Gennady Shapiro
Ranch Hand
Joined: Sep 25, 2001
Posts: 196
posted Mar 28, 2002 10:47:00
0
Has anyone tried to resize a java plug-in on a html page? It won't resize, unlike <Applet >. Simple code like below does not work for me.
function resizeTree() {
var width = document.body.clientWidth;
var height = document.body.clientHeight;
document.DocumentTree.setSize(width, height);
}
...
<jsp
lugin type="applet"
code="qitanalytics.gui.tree.TreeViewer"
codebase="/classes/QITAnalytics@QITAnalytics"
name="DocumentTree">
<jsp
arams>
<jsp
aram name="scriptable" value="true" />
<jsp
aram name="mayscript" value="true" />
<jsp
aram name="treedata"
value=
"<%=tree.write(location)%>"
/>
</jsp
arams>
<jsp:fallback>
<p>unable to start plugin </p>
</jsp:fallback>
</jsp
lugin>
Suggestions anyone? Thanks P.S. sorry for stupid faces, they replaced ":" + "p" [ March 28, 2002: Message edited by: Gennady Shapiro ]
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 16617
posted Mar 28, 2002 11:20:00
0
P.S. sorry for stupid faces, they replaced ":" + "p" That is too funny. Sorry though that I can't help with the actual problem. I haven't seen or tried that. Mark
Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
sorry for stupid faces, they replaced Edit your post and "Disable Smiles" at the bottom before saying "Add Reply" or whatever the button says. - satya
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Marcus Green
arch rival
Rancher
Joined: Sep 14, 1999
Posts: 2813
posted Mar 28, 2002 17:08:00
0
What version of the JDK are you using?
SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
subject: Java Plug-in misbehaives