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]
# 1
Hi You could use the onclick event of a button and use the window.open() javascript command in order to open a new windowHope it helpsyese.
Yesenia at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 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');}
Deepakarun at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 3
ok, thanks... now a stupid question... where do I put the javascript? not in the java, but the jsp?
yukhntr at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 4
Of course in the jsp.
Deepakarun at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 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.
yukhntr at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 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

surendra_j2ee at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 7
window.open('File.jsp',null,"height=200,width=400,status=yes,toolbar=no,menubar= no,location=no") ;
surendra_j2ee at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...
# 8
I guess this will work with plain web page using JSF project. Wil it work with portlet page? if yes, How this will work in portlet page using JSR-168 JSF Project?
hitensai at 2007-7-7 0:21:13 > top of Java-index,Development Tools,Java Tools...