Web Hosting Talk







View Full Version : Dynamic Drop Downs - JS + PHP


binchaud
01-08-2005, 10:44 PM
Hi,

We're attempting a view on our website, the following is the static version:

http://www.clantemplates.com/previewpane/

Basically the options on the drop down menus are generated from the database.
And the values of the second drop down menu is conditional on the first one.
When a "template" is chosen, it loads on the bottom frame PLUS gives information on the right side.

We have all the information stored in the database already, and call it using {author} {name} {download.link} .. etc.

We have php coders, but no one to do the JS. Any help is appreciated.

Thanks Much

Marble
01-08-2005, 10:47 PM
There is a much much much better and cleaner and also cross browser supported version using CSS (and very basic JS) A ton less code.

http://www.alistapart.com/articles/horizdropdowns/

binchaud
01-08-2005, 10:56 PM
Ah, I understand that, but we're not having a problem creating conditional drop down menus.
Its more getting the info on the right side to be displayed without having the page be refreshed.

sonicgroup
01-09-2005, 09:24 AM
Check this (http://www.mattkruse.com/javascript/dynamicoptionlist/) out. It should get you started the right direction.

Voxxit
01-09-2005, 10:17 AM
Whatever you use, make sure to keep the javascript in a .js file. Validators hate it :P

binchaud
01-10-2005, 04:44 AM
Hi,
Thanks for replying, but we ended up using another way.
It works well now.

Thx again

Bob_Isaac
01-10-2005, 12:52 PM
Try Link Launch by www.webgenie.com. I use it on some of my pages.


Bob

www.volvoclub.org.uk