Mikijs Posted August 27, 2008 Report Share Posted August 27, 2008 tatad es gribetu uzzinat ka ir iespejams shads variants es ar linka palidzibu atveru jaunu logu, kura ir forma. aizpildu formu.. forma nosubmitojas un tad (šo es gribu) ka logs aizveras (window.self.close();) un refreshojas tas logs kura es nospiedu linku lai atvertu jaunu logu. Link to comment Share on other sites More sharing options...
martins256 Posted August 27, 2008 Report Share Posted August 27, 2008 (edited) <script type="text/javascript"> function reload_page() { setTimeout('document.location.reload(true)', 1000); } </script> <a href="java script:void()" onClick='window.open("123.php","mywindow","menubar=0,resizable=1,width=350,height=250");'>lalalal</a> <form onSubmit="window.opener.reload_page();window.close()"></form> Tev veicās ;) Es tieši šo taisīju pirms pāris dienām. P.S. tas timeout bij vajadzīgs, jo savādāk parent refreshojas ātrāk nekā formas dati tiek ielikti db.. Edited August 27, 2008 by martins256 Link to comment Share on other sites More sharing options...
Recommended Posts