Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links


Pass Parameters To A Popup in Java

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-02-2010
Member
 
Join Date: Nov 2009
Posts: 712
Pass Parameters To A Popup in Java

Sponsored Links
Hello, I am having an application. In which addresses are entered. To validate the form data are sent to a webservice address verification. Now here I want to open a popup that allows the user to choose between different proposals. Upon return from webservice, I put my picture proposal as an attribute of the request. Is anyone having an idea to pass the parameters to the Popup in java. If you know it then please help me to achieve it.

Reply With Quote
  #2  
Old 23-02-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,278
Re: Pass Parameters To A Popup in Java

Hello, If you make use of the javascript code below then you will able to get the solution for your problem:
Code:
window.open('my url','test')
this.form.target="test";
this.form.submit;
Reply With Quote
  #3  
Old 23-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,382
Re: Pass Parameters To A Popup in Java

It is quiet simple to pass parameters to a popup window in java. You just need to create a function below and then you can simply solve your problem:
Code:
popupction popup()
{
var pwindow = window.open(alldata);
pwindow.creator = self;
}
Reply With Quote
  #4  
Old 23-02-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,989
Re: Pass Parameters To A Popup in Java

Hello, I think you need to make use of the code as per your requirement. I have given the code below, you need to use it as per your program:
If you want the reference to the parent window then you can use the code below:
Code:
window.opener
If you want the reference to the parent web form then you need to use the code below:
Code:
window.opener.document.forms["<%= str%>"]
And if you want the reference to the requesting control in the parent WebForm then it is necessary to make use of the code below:
Code:
window.opener.document.forms["<%= str%>"].elements["<%= control %>"]
Reply With Quote
  #5  
Old 23-02-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,371
Re: Pass Parameters To A Popup in Java

Hello, you just need to add the javascript code below in your program for passing a parameter to a popup in java.
Code:
<asp:Button ID="b1" runat="server" Style="position: static" OnClientClick="popup()"
                Text="Execute"/>
<script type="text/javascript">
function popup()
{
window.open("Test.aspx",'window','width=200,height=200,background=white,menubar=no, resizable=no')
}
</script>
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Pass Parameters To A Popup in Java"
Thread Thread Starter Forum Replies Last Post
How to pass parameters to a workflow B-JOB Guru Windows Software 3 25-02-2011 06:13 AM
Passing optional parameters in java Miles Runner Software Development 5 05-03-2010 09:20 AM
How to Pass Parameters to Functions super soaker Software Development 3 31-12-2009 11:16 AM
How to Pass Parameters via URL Paramartha Software Development 4 23-09-2009 06:13 AM
What is difference between pass by value & pass by reference in java? Baran Software Development 4 25-02-2009 06:15 PM


All times are GMT +5.5. The time now is 07:07 AM.