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

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 Aktualny czas: 22.08.2025 - 10:54