Blitz Posted September 29, 2005 Report Share Posted September 29, 2005 Kaa teiksim likt <input type=button> vai t.ml. izspildiit kadu noteiktu php funkciju kas ir defineta tai pasaa failaa... :unsure: Link to comment Share on other sites More sharing options...
Delfins Posted September 29, 2005 Report Share Posted September 29, 2005 nevar. Button ir pie klienta. php-func ir uz servera PS: izmanto XML-RPC Link to comment Share on other sites More sharing options...
Venom Posted September 29, 2005 Report Share Posted September 29, 2005 echo '<form target="_blank" method="post" action="cits.php"> <input type="submit" name="sbm" value="izpildīt" /></form>'; iekš cits.php: <?php if (isset($_POST['sbm'])) function(); ?> <script type="text/javascript">window.close()</script> Link to comment Share on other sites More sharing options...
bubu Posted September 29, 2005 Report Share Posted September 29, 2005 Perversi. Link to comment Share on other sites More sharing options...
Venom Posted September 29, 2005 Report Share Posted September 29, 2005 yup :ph34r: Link to comment Share on other sites More sharing options...
Delfins Posted September 29, 2005 Report Share Posted September 29, 2005 vai iframe.location.href="http://server/execute.php?func=myfunc"; Bet manuprāt nevar zināt, ko topika veidotājs ar to domāja - ko tieši gribēja panākt.. Link to comment Share on other sites More sharing options...
Blitz Posted September 29, 2005 Author Report Share Posted September 29, 2005 Paslaik man stav uz perversaa Venom varianta, bet gribetos lai funkcija izspilditos bet lapa taa ari nerefresotos... Ja izmanto form action tad naakas spaidit atpakalejosu pogu un window.close ar neder... Meiginasu Delfina variantu... paldies Link to comment Share on other sites More sharing options...
Venom Posted September 29, 2005 Report Share Posted September 29, 2005 Ja izmanto form action tad naakas spaidit atpakalejosu pogu un window.close ar neder... abet tu uzliki target="_blank", resp. lai formu nodod jaunā logā kurš tad arī aizvērsies? iframe vietā labāk lietot parasto "slēpto 0px-augstu vai platu" frame Link to comment Share on other sites More sharing options...
Blitz Posted September 29, 2005 Author Report Share Posted September 29, 2005 aaa... skaidrs, tagad iet normali... Pie reizes vel vien jaut. Tai skripta logaa ko nupat aizveru ir iespejam ierakstit kadu komandu kas pirms aizveranas refresho arii pirmo logu? Link to comment Share on other sites More sharing options...
Venom Posted September 29, 2005 Report Share Posted September 29, 2005 pag-pag! tikko tu negribēji lai tas "atverošais" logs refrešojas. vienreiz tak izlemj! NB: opener.reload(); Link to comment Share on other sites More sharing options...
Delfins Posted September 29, 2005 Report Share Posted September 29, 2005 Da takš izmanto XML-RPC 1.) sendXMLRPC( url ); 2.) handlers nolasa atgriezto saturu, kurā būs ierakstīts window.reload(); Link to comment Share on other sites More sharing options...
Venom Posted September 29, 2005 Report Share Posted September 29, 2005 es tik nesaprotu, ja notiek window.reload() PRIEKŠ KAM JĀMOCĀS? Link to comment Share on other sites More sharing options...
Delfins Posted September 29, 2005 Report Share Posted September 29, 2005 \m/ Link to comment Share on other sites More sharing options...
Recommended Posts