struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivasula Reddy A , Bangalore" <srinivasu...@hcl.in>
Subject RE: Need Help On Pop Up
Date Tue, 08 May 2007 10:28:40 GMT
yes

-----Original Message-----
From: Kapil Sharma [mailto:kapil.sharma@iap-online.com] 
Sent: Tuesday, May 08, 2007 3:25 PM
To: Struts Users Mailing List
Subject: RE: Need Help On Pop Up


It is working at my end.

Have u specified correctly the form names and field values.

n 

Have u used the function to open that popup properly.



Thanks and Regards,
Kapil Sharma 



-----Original Message-----
From: Srinivasula Reddy A , Bangalore [mailto:srinivasulaa@hcl.in]
Sent: Tuesday, May 08, 2007 6:46 PM
To: Struts Users Mailing List
Subject: RE: Need Help On Pop Up


Hi sharma,

function updateParent(){
    opener.document.form1.name.value = document.childForm.others.value;
     self.close();
    return false;
}

In the above code the value is not reflecting in the parent jsp

-----Original Message-----
From: Kapil Sharma [mailto:kapil.sharma@iap-online.com] 
Sent: Tuesday, May 08, 2007 3:07 PM
To: Struts Users Mailing List
Subject: RE: Need Help On Pop Up




//calling the child (popup ) window

function fnOpenPopup (path, values)
{

  CHECK_CHANGE = 1;
  if (childWin && !childWin.closed)
  {
    childWin.close();
  }
  var params="toolbar=0,"; //toolbar off
  params+="location=0,"; //location/address box off
  params+="directories=0,"; //directories off
  params+="status=0,"; //status bar off
  params+="menubar=0,"; //menu baroff
  params+="scrollbars=1,"; //scrollbar on(comes only if size of window
is
too small for text)
  params+="resizable=0,"; //cannot be resized
  params+="left= "+200+","; //position of window from left in pixels
  params+="top= "+200+","; //position of window from top in pixels
  params+="width=100,"; //width of window in pixels
  params+="height=400"; //height of window in pixels

  if (values != null)
  {
    childWin = window.open(path + "?hdnModePopup=Y"+"&"+values, "popup",
params);
  }
  else
  {
    childWin = window.open(path + "?hdnModePopup=Y", "popup", params);
  }

   if (childWin.opener == null)
            childWin.opener = self;
  childWin.resizeTo(750,350);
  childWin.moveTo(30,80);
  childWin.focus();
}


called on submit of popup child window

function updateParent(){
    opener.document.form1.name.value = document.childForm.others.value;
     self.close();
    return false;
}

All the values will move to the name field of the parent



Thanks and Regards,
Kapil Sharma


-----Original Message-----
From: Srinivasula Reddy A , Bangalore [mailto:srinivasulaa@hcl.in]
Sent: Tuesday, May 08, 2007 6:27 PM
To: Struts Users Mailing List
Subject: RE: Need Help On Pop Up



No friend I need how to update the parent jsp with the selected value of
pop up jsp

-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com]
Sent: Tuesday, May 08, 2007 2:50 PM
To: Struts Users Mailing List
Subject: Re: Need Help On Pop Up

2007/5/8, Srinivasula Reddy A , Bangalore <srinivasulaa@hcl.in>:
>
> Hi Struts User Community,
> ...
>
In struts how I can do this please give me sample rough code of JSP,
> ACTION CLASS, ACTION MAPPING ELEMENT, and POP UP JSP CODE.



It seems like homework! You're asking too much, friend. Try to search
the
internet, write some code and, then, ask a specific question.

Antonio

DISCLAIMER:
------------------------------------------------------------------------
----
-------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily
reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification,
distribution and / or publication of
this message without the prior written consent of the author of this
e-mail
is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.

------------------------------------------------------------------------
----
-------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message