/    Sign up×
Community /Pin to ProfileBookmark

problem with popup

Hi, i’ve a little problem:
i must to make an html page that contains a form and two button: the first forword to next form; the second one must to open a new popup-window.
In a popup there are some text field and one button that must to close the popup.

Here the example code:

– Index page:
<form>

<div align=”left”>
<INPUT TYPE=”button” VALUE=”prompt” onClick=”window.open(‘popup.html’,’menubar=no,status=no,location=no’)”>
</div>

-popup.html:
<form>

<td>
<input type=”text”name=”consu”/>
</td>

<div align=”center”>
<input type=”submit” value=”confirm” ??? ></div>
</form>

Questions:
-once the popup is opend i want to click on “confirm” to close the popup (parameters in ???), how can i do?
-i need to capture the parameters insert into popup text field and send them to a separate javabean to store in a file (so with jsp getParameter()). How can i do?

thanks a lot

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@mityaDec 08.2005 — In your popup:

<form action=the_jsp_page_to_store_the_data.jsp method=post>


On that jsp page: (the following is php - I don't know jsp)

//your code here, to write to file

echo "<script>window.close();</script>";
×

Success!

Help @Golf spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...