numero = 55916
interpreted = N
texte = Here is some JS code that is triggered by a change in one menu ("service"). It re-creates the second menu ("Chemistry") and then sets the selected item accordingly. The menu recreation step is necessary according to an old copy of Danny Goodman's JavaScript Bible.-=-=-=-=-=-=-=-=- begin JS -===-=-=-=-=-function chemServ(form) {docC = form.chemistrydocCv = form.chemistry.options[docC.selectedIndex].valuedocS = form.servicedocSv = form.service.options[docS.selectedIndex].valueif (docSv == "Rxn and Analysis") { form.chemistry.options.length = 0form.chemistry.options[0] = new Option("BDSF's Choice","BDSF's Choice")form.chemistry.options[0].selected = true} else { form.chemistry.options.length = 0form.chemistry.options[0] = new Option("","")form.chemistry.options[1] = new Option("BigDye TERM v3.1","BigDye TERM v3.1")form.chemistry.options[2] = new Option("BigDye TERM v3.0","BigDye TERM v3.0")form.chemistry.options[3] = new Option("BigDye TERM v2.0","BigDye TERM v2.0")form.chemistry.options[4] = new Option("BigDye TERM v1.1","BigDye TERM v1.1")form.chemistry.options[5] = new Option("BigDye TERM v1.0","BigDye TERM v1.0")form.chemistry.options[0].selected = true}window.status = 'filled'return true}-==-=-=-=-=-=-=-=- end JS -==-=-=-=-=-=-=-=-=-=trigger:=--=-=-=-=-=-=-=-=-- begin HTML -=-==-=-=-=-=-=-=-
Request Type:
Chemistry:
-==-==-=-==-=--=-- end HTML -==-=-=-=-=-=-=--=-=Dave HurleyDepartment of BiologyUniversity of WashingtonOn Feb 3, 2004, at 8:07 AM, Steve Craig wrote:> Hi>> Sorry for the OT it's just I need to solve this today.>> I need a piece of JavaScript or something that will populate a drop > down> menu depending on what another one is set too.>> I have a dna page that will return a list of clients to one menu and> depending on that, choose a list of projects from the other but I want > it> all on 1 page with no refresh. So if someone picks a new client they> instantly see only that clients projects. Hope that makes sense.>> Pretty standard stuff I know I'm just in a hurry, anyone know of > anything> that I can nick/borrow?>> Cheers> ========================================> Steve Craig - Asylum Interactive Ltd> Tel +44 1224 642960 Fax +44 1224 642962> ========================================> http://www.asylumweb.com> Email: steve@asylumweb.com> ========================================>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Here is some JS code that is triggered by a change in one menu ("service"). It re-creates the second menu ("Chemistry") and then sets the selected item accordingly. The menu recreation step is necessary according to an old copy of Danny Goodman's JavaScript Bible.-=-=-=-=-=-=-=-=- begin JS -===-=-=-=-=-function chemServ(form) {docC = form.chemistrydocCv = form.chemistry.options[docC.selectedIndex].valuedocS = form.servicedocSv = form.service.options[docS.selectedIndex].valueif (docSv == "Rxn and Analysis") { form.chemistry.options.length = 0form.chemistry.options[0] = new Option("BDSF's Choice","BDSF's Choice")form.chemistry.options[0].selected = true} else { form.chemistry.options.length = 0form.chemistry.options[0] = new Option("","")form.chemistry.options[1] = new Option("BigDye TERM v3.1","BigDye TERM v3.1")form.chemistry.options[2] = new Option("BigDye TERM v3.0","BigDye TERM v3.0")form.chemistry.options[3] = new Option("BigDye TERM v2.0","BigDye TERM v2.0")form.chemistry.options[4] = new Option("BigDye TERM v1.1","BigDye TERM v1.1")form.chemistry.options[5] = new Option("BigDye TERM v1.0","BigDye TERM v1.0")form.chemistry.options[0].selected = true}window.status = 'filled'return true}-==-=-=-=-=-=-=-=- end JS -==-=-=-=-=-=-=-=-=-=trigger:=--=-=-=-=-=-=-=-=-- begin HTML -=-==-=-=-=-=-=-=-
Request Type:
Chemistry:
-==-==-=-==-=--=-- end HTML -==-=-=-=-=-=-=--=-=Dave HurleyDepartment of BiologyUniversity of WashingtonOn Feb 3, 2004, at 8:07 AM, Steve Craig wrote:> Hi>> Sorry for the OT it's just I need to solve this today.>> I need a piece of JavaScript or something that will populate a drop > down> menu depending on what another one is set too.>> I have a dna page that will return a list of clients to one menu and> depending on that, choose a list of projects from the other but I want > it> all on 1 page with no refresh. So if someone picks a new client they> instantly see only that clients projects. Hope that makes sense.>> Pretty standard stuff I know I'm just in a hurry, anyone know of > anything> that I can nick/borrow?>> Cheers> ========================================> Steve Craig - Asylum Interactive Ltd> Tel +44 1224 642960 Fax +44 1224 642962> ========================================> http://www.asylumweb.com> Email: steve@asylumweb.com> ========================================>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Dave Hurley
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...