[Javascript] I'd like to ask you one more time...

Chris Tammes chris_tammes at hotmail.com
Thu Feb 6 17:02:36 CST 2003


I send you this mail before. I want to ask you once again for the script. I tried myself, but it didn't work out. I hope you can help me.

Would you please send me the script?

Thanks,

Chris Tammes
Holland


----- Original Message ----- 
From: Chris Tammes 
To: javascript at LaTech.edu 
Sent: Tuesday, February 04, 2003 5:41 PM
Subject: script request PassSelectOneText(form)


Hi there,

At this link: https://lists.latech.edu/pipermail/javascript/2002-August/003965.html

I found a script of yours and it really helped me out. You said you could mail such for select-multiple. I would ask you to mail me the script because It would would be of great help.

If the links doesn't work, this is the script I talk about:

<script LANGUAGE="JavaScript">
<!--
function PassSelectOneText(form) {
  for (var i = 0; i < form.elements.length; i++)  {
if (form.elements[i].type == 'select-one')  {
GetSelectOneText(form,form.elements[i]);
}
}
  function GetSelectOneText(form,selectOne) {
    var text = selectOne.options[selectOne.selectedIndex].text;  
    var exists = false;
    var name = selectOne.name+'Text'
    for (var i = 0; i < form.elements.length; i++)  {
  if (form.elements[i].name == name)  {
  exists = true
  }
  }
  if (!exists) {
  form.innerHTML += '<input type="hidden" name="' + name + '">'
    }
    form.elements[name].value = text;
  }
}

// -->
</script>

Thanks,

Chris Tammes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030207/6b69de56/attachment.htm>


More information about the Javascript mailing list