[SOLVED]Redirect after a 'RUN' button

I need to open a new window after I get done processing the selected items from a ‘RUN’ button.

So I put the following in the ‘onFinish’ code:

sc_redir(blank_packer_print, thispacker=$thelist,"_blank");

It opens the new window as I expect. But the prompt is messed up on the original window. I would have expected that window to operate as it normally would.

When I looked at the generated html, I can see the problem.


     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
      <html DIR=''>
      <head>
       <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script type="text/javascript" src="/scriptcase/prod/third/jquery/js/jquery.js"></script>
        <script type="text/javascript" src="/scriptcase/prod/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></script>
        <script type="text/javascript">var sc_pathToTB = '/scriptcase/prod/third/jquery_plugin/thickbox/';</script>
        <script type="text/javascript" src="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox-compressed.js"></script>
        <link rel="stylesheet" href="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
        <link rel="stylesheet" type="text/css" href="../_lib/css/Scriptcase7_BlueSky/Scriptcase7_BlueSky_grid.css" /> 
      </head>
      <body class="scGridPage">
      <table class="scGridTabela" align="center"><tr><td>
Printing Packers:<br>258890<br>258890     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
      <HTML>
      <HEAD>
      <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
       <META http-equiv="Last-Modified" content="Wed, 04 Sep 2013 14:43:28 GMT"/>
       <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
       <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
       <META http-equiv="Pragma" content="no-cache"/>
      </HEAD>
      <BODY>
   <form name="Fredir" method="post" 
                     target="_self"> 
     <input type="hidden" name="nmgp_parms" value="thispacker?#?258890<br>258890?@?"/>
       <input type="hidden" name="nmgp_outra_jan" value="true"/> 
   </form> 
      <SCRIPT type="text/javascript">
          document.Fredir.target = "_blank"; 
          document.Fredir.action = "/scriptcase/app/Shipping_LDAP_Menu/blank_packer_print/blank_packer_print.php";
          document.Fredir.submit();
      </SCRIPT>
      </BODY>
      </HTML>
         </td></tr><tr><td align="center">
      <form name="F4" method="post" 
                        action="grid_packer_list.php" 
                        target="_self">
      <input type=hidden name="nmgp_opcao" value="volta_grid"/>
      <input type=hidden name="script_case_init" value="505"/>
      <input type=hidden name="script_case_session" value="5fe62d8bae0d557c2d5800ce30ca1eaa" />
<input type=submit name="nmgp_bok" value="Ok"/></form>      </td></tr></table>
      </body>
      </html>

As you can see, there are multiple <head> and </head> tags, and <body> </body> tags…

Hello,

Issue reported to our bugs team.

regards,
Bernhard Bernsmann

Hello,

This problem has been resolved and will be released in the next update.

Hi John,

Luckily they have some that their problems are resolved quickly, good for them.
Aquiles

At least we now get some feedback about which issues are solved. That’s major progress Imho. What error are you refering at?