Results 1 to 5 of 5

Thread: Pass Parameters To A Popup in Java

  1. #1
    Join Date
    Nov 2009
    Posts
    712

    Pass Parameters To A Popup in Java

    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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;

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    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;
    }

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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 %>"]

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    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>

Similar Threads

  1. How to pass parameters to a workflow
    By B-JOB Guru in forum Windows Software
    Replies: 3
    Last Post: 25-02-2011, 07:13 AM
  2. Passing optional parameters in java
    By Miles Runner in forum Software Development
    Replies: 5
    Last Post: 05-03-2010, 10:20 AM
  3. How to Pass Parameters to Functions
    By super soaker in forum Software Development
    Replies: 3
    Last Post: 31-12-2009, 12:16 PM
  4. How to Pass Parameters via URL
    By Paramartha in forum Software Development
    Replies: 4
    Last Post: 23-09-2009, 06:13 AM
  5. Replies: 4
    Last Post: 25-02-2009, 07:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,277,127.82148 seconds with 17 queries