This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Passing values from popupwindow to parent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Passing values from popupwindow to parent" Watch "Passing values from popupwindow to parent" New topic

Passing values from popupwindow to parent

shirihsa bandari

Joined: Aug 03, 2006
Posts: 1
Hi All,
Im trying to Click on one button to open a popup window and entering some comment and submitting the Page. but the parent page is not refresing the submitted values. Javascript function im using it for this.
in the parent page

function onReopen() {
launchCenter('/sprint/'+document.nboPlanningForm.NBOId.value + '&projtypeid=' + document.nboPlanningForm.projtypeid.value + '&docStatus=' + document.nboPlanningForm.docStatus.value + '&isPlanRccStage=' + document.nboPlanningForm.isPlanRccStage.value + '&isAM=' + document.nboPlanningForm.isAM.value,'ReOpen', 400, 600);
and in the popup window page

function onReOpen() {
var reOpenRes = confirm("Are you sure to ReOpen this Project?\n\n");

form = document.nboPlanningForm
if(form.lngWF_State.selectedIndex == 0) {
alert(" Please Select the Module to ReOpen");
subAction=reOpen&projtypeid='+<bean:write name="projType"/>+'&NBOId='+<bean:write name="strNboId"/>+'&reopenStateId='+form.lngWF_State.value+'&isPlanRccStage='+<bean:write name="isPlanRccStage"/>
opener.setReopenValue(form.lngWF_State.value, form.comment.value);
var url=opener.location.href;
url = url + '/sprint/';


pls elp me
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15379
well you are not showing the funciton on how the pop up window is opened up and you are not showing the funciton on how ou pass the data back. The calls are there, but not the function.

Also I have no clue what pls elp means....Use full words here since English is not everyone's first language.

It is sorta covered in the JavaRanch Style Guide.
subject: Passing values from popupwindow to parent