![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 6 Pomógł: 0 Dołączył: 13.04.2007 Ostrzeżenie: (0%) ![]() ![]() |
Jako ze ostatnio apple wypuscilo Safari pod wine a jestem w trakcie pisania proejktu webowego, probuje zrobic kompatybilnosc takze z Safari. Wiele problemow ominalem ale jedngo nie moge.
Kod <form target="nazwaIframe"> <input type="file" /> <input type="submit" /> </form> dziala chetnie, jednak Kod <form target="nazwaIframe" onsubmit="document.getElementById('submitButton').click()"> <input type="file" /> <input type="button" id="submitButton" /> </form> <!-- lub --> <form name="uploadForm" target="nazwaIframe" onsubmit="document.uploadForm.submit()"> <input type="file" /> </form> juz nie chca dzialac. Ten skrypt jest uploadem plikow z progress barem, dziala Opera IE (>=6) FF, ale Safar i nie bardzo (oczywiscie wszystkie pola sa zdefiniowane zgodnie z XHTML czyli enctype id i tak dalej to jest tylko przyklad). Ktos wie dlaczego Safari ma problemy z submitem formularzy z JS ? |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 11:56 |