[thelist] Dynamic javascript?

Casey aspnet at thecrookstons.com
Tue Dec 20 16:51:21 CST 2005


function sendResortCL ( selectedtype, formName )
{
  document.resortDataCL.sortby.value = selectedtype ;
  document.resortDataCL.submit() ;
}


I'm using this to submit a form from a text link.  Trouble is, the name of 
the form needs to be dynamic.  I am not familiar enough with JS to know how 
to write the syntax... something like:


function sendResortCL ( selectedtype, formName )
{
  document.resortDataCL & formName & .sortby.value = selectedtype ;
  document.resortDataCL & formName & .submit() ;
}

Thanks!!!

Casey 




More information about the thelist mailing list