Problem with Javascript and PHP

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Stickle
Forum Newbie
Posts: 4
Joined: Tue Sep 12, 2006 3:24 am
Location: Malaga, Spain

Problem with Javascript and PHP

Post by Stickle »

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:-

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: 793
My question now, is how can I fix this?

Any help would be greatly appreciated!
Stickle
Forum Newbie
Posts: 4
Joined: Tue Sep 12, 2006 3:24 am
Location: Malaga, Spain

Post by Stickle »

OK then, slight progession with this....

I´ve been working closely with a friend and we have found that simply commenting out the following line......

Code: Select all

//row++;
....allows the Javascript menus to work - Just need to find out now how to correct it so that I can select the products/items in the list.....

Thanks in advance...
Post Reply