• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing values from popupwindow to parent

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/editNBOPlan.do?subAction=getReOpenStates&nboid='+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");
if(!reOpenRes)
return;

form = document.nboPlanningForm
if(form.lngWF_State.selectedIndex == 0) {
alert(" Please Select the Module to ReOpen");
form.lngWF_State.focus();
return;
}
window.close()
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/editNBOPlan.do?subAction=reOpen';
self.close()

}


pls elp me
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Eric
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic