Dear,
You can also use like
<INPUT TYPE="text" NAME="t1" onblur="shownew()">
and then....
<SCRIPT LANGUAGE="JavaScript">
<!--
function shownew()
{
document.write ("<div id='layer2' style='position:absolute;
width=100,height:30;top:100;left:0;'>");
document.write ("<input type='text' name='t2' value='yes...'>");
document.write ("</div>");
}
//-->
</SCRIPT>
It will generate the text box or whatever input type you want dynamecally but I can't
figure-out one thing that where the other fields are going while executing this...
Hope this helps.
-Nilesh Thesia
---------------------
At 10:50 AM 3/26/2001 -0800, you wrote:
>How can I, or is it even possible to, automatically populate text fields in
>a form after one field is entered? In the past, I've done something
>similar using a drop-down list for the first value and populating the other
>fields based on the selection, but in this case my client needs to be able
>to enter text to trigger the event rather than selecting from a list.
>(Even if the drop-down list method was acceptable, there would be over
>10,000 items to choose from, and my system hangs just trying to run the
>query.) This should be doable -- the idea is much like applications I've
>seen where entering a zipcode populates city and state fields on the fly,
>but I can't figure out any way to do it. Can anyone point me in the right
>direction? Thanks!
>
>MC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists