Problem with Javascript and PHP
Posted: Tue Sep 12, 2006 3:41 am
Hi there guys,
I´m a friend of Jaybird and he recommended me to post my problem on here, as he assures me that someone is sure to know the answer.
Basically this is the scenario:-
I am working on the following website:- http://www.intrepid.es/catalog/compbuild.php
As you can see, in the centre there are 3 Categories (Test1, Test2 and Montage), each with a dropdown menu. On the above example you will see it works fine, the menus dropdown correctly, however when I remove 1 Categorie (Test2 for example) the Javascript stops working and i cant figure out why.
I have posted the code used at http://www.intrepid.es/catalog/compbuild1.txt if anyone needs to take a look, and if any futher info is needed, I´d be more than happy to provide it - Its just a project I have been working on for 5 months, and the last 2 weeks have been spent on trying to find a solution this little thing (then it is finished).
Talking with Jaybird on MSN he assures me that it is an error in the following line:-
My question now, is how can I fix this?
Any help would be greatly appreciated!
I´m a friend of Jaybird and he recommended me to post my problem on here, as he assures me that someone is sure to know the answer.
Basically this is the scenario:-
I am working on the following website:- http://www.intrepid.es/catalog/compbuild.php
As you can see, in the centre there are 3 Categories (Test1, Test2 and Montage), each with a dropdown menu. On the above example you will see it works fine, the menus dropdown correctly, however when I remove 1 Categorie (Test2 for example) the Javascript stops working and i cant figure out why.
I have posted the code used at http://www.intrepid.es/catalog/compbuild1.txt if anyone needs to take a look, and if any futher info is needed, I´d be more than happy to provide it - Its just a project I have been working on for 5 months, and the last 2 weeks have been spent on trying to find a solution this little thing (then it is finished).
Talking with Jaybird on MSN he assures me that it is an error in the following line:-
Code: Select all
Error: prods_row.cells[1].childNodes[0].childNodes[0].cells has no propertiesSource File: http://www.intrepid.es/catalog/compbuild.php?language=enLine: 793Any help would be greatly appreciated!