![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 341 Pomógł: 1 Dołączył: 19.11.2007 Ostrzeżenie: (10%) ![]() ![]() |
Mam takie kody:
index.html Kod <html> <frameset cols="30%,70%"> <frame src="ruben.html" name="ramka1"> <frame src="lech.html" name="ramka2"> </frameset> </html> ruben.html Kod <form name="forumlarz" action="lala.html"> <input type="text" name="pole" value="ruben"> </form> lech.html Kod <html> <form name="test"> <input name="var1" value="2"><br> </form> wynik: <input name="wynik" value="0"> <script type="text/javascript"> function onloadHandler() { document.getElementsByName("wynik")[0].value=top.frames["ramka1"].document.getElementsByName("pole")[0].value; } </script> <body onload="onloadHandler();"> </body></html> Jak widać w kodzie chodzi o to, żeby z jednego frameseta wysłać dane drugiego. Na dysku lokalnym wszystko ładnie działa, ale jak wyśle te pliki na serwer to formularz w lech.html nie przejmuje wartości z ruben.html. Dlaczego się tak dzieje i jak ro zrobić, żeby działało? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 15:27 |