2 Replies Latest reply: Apr 25, 2013 11:25 PM by M Tajuddin RSS

    Forward to new page

    r12appsuser
      Hello,

      On clicking a column , I open a new popup page.(page 2)
      now in the popup page 2, i need to put some logic to forward to a specific page based on the parameter value
      example in page headers of Page2-- i want to put some logic if paramvalue= A forward to Page3 else forward to Page 4

      how can I do that?

      thanks,
      Arun
        • 1. Re: Forward to new page
          Chandrakaanth Ramamurthy
          See if the below forum helps you achieve what you want

          Redirect to URL from PL/SQL
          • 2. Re: Forward to new page
            M Tajuddin
            Hi
            You can use jQuery to accomplish this. Assuming you are passing a parameter value to page 2 say it is P2_ITEM_VALUE. Now you can place the following javascript in the page 2 header this will execute on page load.
            <script type="text/javascript">
            $(function () {
                
                    var txt = $('#P2_ITEM_VALUE').val();
            
                    if (txt == 'A') {
                        window.location.replace("http://someurl.com");
                        //alert("You have entered A");
                    } else {
                        window.location.replace("http://anotherurl.com");
                    }
            
            
            });
            
            </script>
            Hope this helps.

            Regards,
            Tajuddin
            Blog: http://tajuddin.saradesh.com