Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dynamiczny formularz, problem :/
Andree
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 25.11.2003
Skąd: zewsząd

Ostrzeżenie: (10%)
X----


Witam.
mam taki kod
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <title>Untitled Document</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. </head>
  5.  
  6. <script language="JavaScript" type="text/javascript">
  7. function funkcja(id)
  8. {
  9. x=document.form.tr.value;
  10. document.getElementById(id).innerHTML="";
  11. for(i=1;i<=x;i++)
  12. {
  13. document.getElementById(id).innerHTML+=i+"<input name=\""+i+"\" type=\"text\"><br>" ;
  14. }
  15.  
  16. }
  17. <form name="form" id="form">
  18. <table id="ile" border=1>
  19. <tr>
  20. <td>komorka1</td>
  21. <td>
  22. <select name="tr" onChange=funkcja('ile')>
  23. <option selected>Ilosc dzieci...</option>
  24. </select></td>
  25. </tr>
  26. <p>
  27. <input type="submit" name="Submit" value="Submit">
  28. </p>
  29. </form>
  30. </body>
  31. </html>


Problem polega na tym ze gdy uzywam tego w internet explorerze ,wystepuje jakis blad
"Nieznany błąd czasu wykonywania" ,a w operze jest wszystko ok.
Proszę o pomoc.Gdzie moze być bląd.
Dzieki smile.gif

Ten post edytował Andree 16.05.2005, 23:49:38


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- Andree   Dynamiczny formularz   16.05.2005, 22:22:45
- - revyag   Miałeś trochę błędów w kodzie. [HTML] pobierz, pla...   17.05.2005, 08:55:24
- - Andree   o,super wielkie dzieki za pomoc   17.05.2005, 15:45:10


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 02:19