launching child windows a certain size
hi -
can anyone explain how to go about making a 'new' window a certain size? perhaps a little step-by-step how-to? I'm fairly new to JSC2
I have a dynamic tree, everything works except I'd like the new window (as I'm doing in a snipet of my code) to be smaller than full screen..
is there any method that let's you specify size or how to do it?
node.setTarget("_blank");
node.setUrl("/faces/issue_detail.jsp?issue=" + id);
thanks
[480 byte] By [
yukhntr] at [2007-11-26 9:33:26]

# 2
For the step by Step...with window sizeonClick="handlePopup();return false;"// Javascript function handlePopup() {window.open('popup.jsp', 'Lookup', 'left=200,top=200,width=380,height=330,resizable=0');}
# 5
well, I wanted to be sure, and I'm pretty new to this...using setTarget and setURL statements, how can I refer to an onClick event? I don't see how, sorry.
# 6
onclick="javascript:changeURL(); "
in java script:
u can write:
function changeURL(){
window.href.location="your new url goes here". (example:http://www.ursite.com?querystring if u want u can pass. better to avoid passing query string .)
}
so when you clicks on that link or button u call that javascript function, so that your location will b loaded. hope it'll b helpful
# 7
window.open('File.jsp',null,"height=200,width=400,status=yes,toolbar=no,menubar= no,location=no") ;