martins256 Posted August 2, 2006 Report Posted August 2, 2006 Nevaru atvērt jaunu, samazinātu logu, kurā būtu nodots POST, no cita frame. Ja nodod no tā paša frame, tad viss sanāk, bet ja nocita, tad sekojošais logs nav samazināts. Visu kopā saturošā kods: <HTML> <frameset rows="*,40" frameborder="no" border="0" framespacing="0"> <frame src="tabula.html" name="tabula" id="tabula" title="dati" /> <frame src="pogas.html" name="pogas" scrolling="No" noresize="noresize" id="pogas" title="Pogas" /> </frameset> </html> pogas.html kods: <HTML> <BODY> <FORM> <input type="button" value="Gatavs" onClick="parent.tabula.document.form1.submit()"> </FORM> </BODY> </HTML> tabula.html kods: <HTML> <HEAD> <script language="JavaScript"> function createTarget(t){ window.open("valstis_mainiit.php", t, "width=250,height=50"); return true; } </script> </head> <body> <FORM name="form1" action="kautkas.php" method="POST" onsubmit="return createTarget(this.target)" target="formtarget"> <input type="submit" value="gatavs"> </FORM> </body> </html> P.S. pats POST tiek nodots
martins256 Posted August 2, 2006 Author Report Posted August 2, 2006 ir citas iespējas kā novietot pogas lapas appakšpusē kā frame ?
v3rb0 Posted August 2, 2006 Report Posted August 2, 2006 uzreiz submit un norādīt popapa izmērus laikam nevarēja, tāpēc: 1. atver tukšu(vai ar textu loading..) popapu kādā izmērā vajag 2. pamaini formas target un nosubmito formu uz popupu.
martins256 Posted August 2, 2006 Author Report Posted August 2, 2006 (edited) Paldies, tagad viss sanāca. Edited August 2, 2006 by martins256
v3rb0 Posted August 2, 2006 Report Posted August 2, 2006 (edited) t.php <?php print_r($_POST); ?> index.html <html> <head> <script type="text/javascript"> function ludzuAtverManiPopupaa() { popupName= "popup"; win = window.open("", popupName, "width=250,height=50"); frm1.target=popupName; frm1.submit(); } </script> </head> <body> <form method="post" id="frm1" action="t.php"> <input type="text" name="txt" /> <input type="button" value="atver mani popupā" onclick="ludzuAtverManiPopupaa()"/> </form> </body> </html> Edited August 2, 2006 by v3rb0
Delfins Posted August 2, 2006 Report Posted August 2, 2006 kamdēļ jāliek poga apakšā? Var takš uztaisīt "skrolējamu formu" ar fiksētu garumu...
Recommended Posts