Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> missing ; before statement
lled3
post 6.07.2010, 20:58:02
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 7.12.2007

Ostrzeżenie: (0%)
-----


Cytat
Błąd: missing ; before statement
Plik źródłowy: ...
Wiersz: 172, Kolumna: 4
Kod źródłowy:
var dane[1] = new Array(10);


[JAVASCRIPT] pobierz, plaintext
  1. function wstaw_dane( id )
  2. {
  3. var dane = new Array();
  4.  
  5.  
  6. var dane[1] = new Array(10);
  7. dane[1][0] = new Array( '', '', '' );
  8. dane[1][1] = new Array( 'Banner', '199', '2' );
  9. dane[1][2] = new Array( 'Banner', '78', '12' );
  10.  
  11. var dane[2] = new Array(10);
  12. dane[2][0] = new Array( '', '', '' );
  13. dane[2][1] = new Array( 'Banner', '199', '2' );
  14. dane[2][2] = new Array( 'Banner', '78', '12' );
  15.  
  16. alert(dane);
  17. for( i=0; i<5; i++ )
  18. {
  19. document.getElementById( 'nazwa[i]' ).value = dane[id][i][nazwa];
  20. document.getElementById( 'ilosc[i]' ).value = dane[id][i][ilosc];
  21. document.getElementById( 'cena[i]' ).value = dane[id][i][cena];
  22. }
  23.  
  24.  
  25.  
  26. }
  27.  
[JAVASCRIPT] pobierz, plaintext

nie wiedzieć czemu zgłasza błąd sad.gif
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 17:13