I have a form in which I have 2 select boxes, the second being filled based on the 
choice made in the first.

The function

function  surfto(f) {
    myindex=document.forms[f].elements[1].selectedIndex;
    location=document.forms[f].elements[1].options[myindex].value;
        return true;
}

gets invoked in the first select box with the onChange event

select name="first" onchange='surfto(0)'

with the option values

option value="TestSelect.cfm?do=#idccode#"...

This works in that the form gets reloaded with the url parameter 'do' which drives the 
query and the second select box.

Any other form fields lose changed values.

Any help would be appreciated.

I tried posting the full code but much of it got dropped.  Is there something else I 
have to do to get it all to display?

I am attaching the full code.

TIA

Sam






------------------------------------------------
Can a Web portal forever change your life?
Win up to $25 Million on iWon - click here!

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to