Hi,

I'm very new to tapestry and doing the first steps.

Does anybody know how to realize a list box, that opens onChange
a new html page? Everything works well with html and javascript,
but I could not get it work in tapestry.

the html code:

      <form name="namelist">
      <select class="choose" name="list" size="1" onChange="getValues()">
        <option selected="selected" value="empty">select name</option>
        <option value="john">John</option>
        <option value="tom">Tom</option>
      </select>
      </form>

the js code:

function getValues() {
  var name =
document.form.list.options[document.form.list.selectedIndex].value;
  if (name == "empty") window.location.href = "index.html";
  else window.location.href = name + ".html";
}

Thanks for any help
Hans


--

Abteilungen SAI
und Stochastik

Universität Ulm
Helmholtzstr. 18
Raum E22
0731/50-23575

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to