jsp pop up problem

[nobr]Hi all

Maybe here is wrong place to ask this question but I cannot find solution or better place to ask this, sorry.

I have two jsp say A.jsp and B.jsp

A.jsp consists a textarea and two buttons. One button submit to trigger a

servlet and another one pop up a window and trigger B.jsp at the same

time.

<form name="editor" method="post" action="servlet/WriteTemplate">

<div>

<textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%;

height: 200px">

<%=getContent()%>

</textarea>

</div>

<br />

<input type="Submit" value="Submit" />

<input type=button value="submit2" onclick="this.form.action='B.jsp';this.form.target='_Blank';this.form.submit();">

But it cannot alter the feature (e.g width, menubar) of popup windows. Replace with

<input type=button value="Preview" onclick="openTarget(this,'width=300,height=300,resizable=1,scrollbars=1'); return true;"target="newpopup"">

Window feature can be configure but the value of textarea cannot be pass into B.jsp. Is it possible to do such action? Please comment, thanks.[/nobr]

[1599 byte] By [waya] at [2007-11-27 11:35:37]
# 1

You couldn't find a Javascript forum anywhere on the Internet? Is Google broken where you are?

But in my opinion the question is rather pointless. Pretty much everybody's browser has popups turned off these days.

DrClapa at 2007-7-29 17:03:55 > top of Java-index,Java Essentials,New To Java...
# 2

Sorry for inconvenient. Since I am not sure is this problem related to java script only and found some similar topics here.

http://forum.java.sun.com/thread.jspa?threadID=217039&messageID=752596

http://forum.java.sun.com/thread.jspa?threadID=718909&messageID=4152597

That alternative that I found. Since B.jsp request the textarea value, it is better to use querystring and B.jsp can getParameter using GET method. If querystring consists double byte character, please use encodeURIComponent

waya at 2007-7-29 17:03:55 > top of Java-index,Java Essentials,New To Java...