01-17-2003, 11:53 AM
I need to create a form like hotmail's registration one..you know?
Its a hotels reservation form. I need the form to autochange when the hotel is selected.
Anyone can give any clue, link tutorial or example??
Thanks In advance
01-17-2003, 12:21 PM
Not really sure what you need but i would recommend reading up on the DOM for dynamically creating elements.
heres a good tutorial to start.
01-17-2003, 02:47 PM
If the form is fairly long you'd be better off having the user enter some basic information (including the hotel) then continuing to another page based on which hotel they chose.
To answer your question, it's really easy to do this in IE, but Netscape and other browsers don't like it. This example works on NS4+ and IE, but requires absolute positioning.
var colData = "Here is my hidden text.";
document.layers['mylayer'].visibility=(checkval=="hide") ? 'hide' : "show";
document.all['mylayer'].style.visibility=(checkval=="hide") ? 'hidden' :"visible";
document.all.mylayer.innerHTML = colData;
<select name="myfield" onchange="showhide(this[this.selectedIndex].text);">
<div id='mylayer' style="position:absolute;left:10px;top:500px"> </div>
01-18-2003, 01:27 AM
You are welcome to draw inspiration from a dynamic form I created for a car rental business (https://gh.cartmedia.com/SSL34781/rsrvtst/reservations.html). Hotel reservations should not be that much different...