Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] dlaczego wywala mi ze array() not defined, mimo że zadeklarowałem
piotrekkr
post
Post #1





Grupa: Zarejestrowani
Postów: 386
Pomógł: 25
Dołączył: 28.09.2005

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


Witam mam taki kod:
  1. <script type="text/javascript" language="javascript">
  2. function changeSubsectionList(section_id, div_id){
  3. var subsection = new array();
  4. subsection[0]='<select name="m4section_id" class="" size="1"><option value="0">Wybierz</option></select>';
  5. subsection[6]='<select name="m4section_id" class=""size="1"><option value="0">Wybierz</option><option value="3">Książki</option><option value="4">Skrypty</option></select>';
  6. subsection[5]='<select name="m4section_id" class="" size="1"><option value="0">Wybierz</option></select>';
  7. subsection[7]='<select name="m4section_id" class="" size="1"><option value="0">Wybierz</option></select>';
  8. document.GetElementById(div_id).innerHTML=subsection[section_id];}


i firefox wywala mi caly czas Błąd: array is not defined. Jakieś sugestie??
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
webdice
post
Post #2


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Kod
var subsection = new Array();
Go to the top of the page
+Quote Post
piotrekkr
post
Post #3





Grupa: Zarejestrowani
Postów: 386
Pomógł: 25
Dołączył: 28.09.2005

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


Dzieki wielkie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ale ja potrafie czasami byc slepy (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 23:21