• 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

Form in New window

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 'Update' button on jsp page on click of which I am opening a new window( parent form is not submitted). I am not specifying exact jsp path for new window but 'campaign\updateCampaign.do'. Action Class which will handle this request is different than Action Class for the parent window but Action Form is common for both.

I need form values which are there in parent window to be available in the Action class that is handling request for opening new window. Is it possible? I am just one year experienced so can you help me in this?

my java script code is,

var sUrl = '<html:rewrite page="/campaign/updateArticle.do"/>';
var sName ='UPDATE_PROJECT';
var oParentWindow =window;
var iWidth =400;
var iHeight =350;
var scroll =0;

if ( !sUrl || !oParentWindow )
return;
var xPos = oParentWindow.screen.width / 2 - iWidth / 2;
var yPos = oParentWindow.screen.height / 2 - iHeight / 2;

var sFeatures = 'width='+ iWidth + ',' + 'height=' + iHeight + ',';
sFeatures += 'left='+ xPos + ',' + 'top=' + yPos;
sFeatures += ',scrollbars=' + (scroll == 0 ? '0' : '1');

var oDialog = oParentWindow.open(sUrl, sName, sFeatures, false);
if ( oDialog )
{
oDialog.focus();
}
[ September 25, 2006: Message edited by: sachin pachpute ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved from JSP to HTML/Javascript.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic