PDA

View Full Version : Chained Selects Issue



thewayno
07-22-2008, 01:22 AM
1) Script Title: Chained Selects

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm

3) Describe problem:
I am using the chained selects menu but I am having an issue. I am using a form but I am not using a <form></form> ... The application I am using is using Google maps and Ajax therefore it doesn't need the <form> and </form> it references everything by the id attribute. If I use the <form></form> my whole application breaks. sooo...

Here is my issue, the chained selects uses this function to load the select menus:
initListGroup('ptypes', document.forms[0].ptype, document.forms[0].psubtype, document.forms[0].arrangement);

As you can see, it references the "form" by using the "forms[0]" but since I cant have a <form></form> the selects loading does not work.

I CANNOT USE A <FORM></FORM> OR MY GOOGLE MAPS SCRIPT TOTALLY BREAKS.

How can I load my selects using something like this, any thoughts anyone???:
initListGroup('ptypes', document.getelementbyid[ptype], document.getelementbyid[psubtype], document.getelementbyid[arrangement]); this of course doesnt work, but I cant figure anything out at all...

ANYONE OUT THERE WITH ANY KNOWLEDGE ON THIS... PLEASE HELP!!!

THANK YOU SO MUCH FOR YOUR HELP!!!