Hi,
Reference:
http://www.dynamicdrive.com/dynamici...ects/index.htm
I'm trying to incorporate an element of this code within a Form that will be emailed. I'd like to capture the values of each level of the derived link.
Ok, having referenced the javascript, the code looks a bit like this...
<body onload="initListGroup('chainedmenu', document.listmenu0.firstlevel, document.listmenu0.secondlevel, document.listmenu0.thirdlevel, 'savestate')">
<form name="listmenu0" method="post" action="mailto:me@mygaff" enctype="text/plain">
<form name="listmenu0">
<table align="center"><tr>
// form items
<td><select name="firstlevel" style="width:180px;"></select></td>
<td><select name="secondlevel" style="width:160px;"></select></td>
<td><select name="thirdlevel" style="width:160px;"></select></td>
// more form items, etc.,
Now, instead of using the code (as provided) to actually open/launch a derived URL from the 'thirdlevel' - i.e.
<td><input type="button" value="Go" onclick="goListGroup(document.listmenu0.firstlevel, document.listmenu0.secondlevel, document.listmenu0.thirdlevel)">
</tr></table>
</form>
... What I'm actually trying to get is the email to capture the
firstlevel
secondlevel
& thirdlevel values
As it stands, when I 'Submit', it only returns a value relating to the 'thirdlevel' item - the other two are left blank.
Anybody got a suggestion as to how I can tweak this to capture the other two values also. Alternatively, can you suggest another way to do 'chained selects' that might work with this?
Thanks (again!) in advance,
N.



Reply With Quote



Bookmarks