Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q23

Feedback on: irt.org FAQ Knowledge Base Q23

Sent by dominique echeverri on March 02, 2000 at 21:11:10: - feedback #890

Worth:
Worth reading

Comments:
I find this aticle interesting and relevant to my work but I am hoping that in addition to this capability of transfering a field element to another, it can also place this element in a specific spot in the other field. I noticed that it places the element at the end of the destination field. If, for example, you need to insert a line from a first field to the middle of a second field, I am hoping that this script can be modified to suit this need.

Thank you


Sent by Roger Rudder on June 22, 2000 at 08:54:02: - feedback #1415

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
This is code from one
of your pages. It works fine in
Internet Explorer but how would
you get it to work in netscape?

raj.

In this example there are two forms within the same document called formName1 and formName2. Within formName1 there is a drop down select list called selectName1 and within formName2 there are two text box fields called textboxName1 and textboxName2

There are various events we could utilise to pass the value or text from the selected option to the text box, e.g. onClick, onChange, onFocus, onBlur and onClick.

In this example I shall use the onChange event to trigger the setForm2Value() function which will change the value of the two text boxes to the value and text of the selected option:

<SCRIPT LANGUAGE="JavaScript"></SCRIPT>

<FORM NAME="formName1">
<SELECT NAME="selectName1" onChange="setForm2Value()">
<OPTION>Select one:
<OPTION VALUE="ill">Doc
<OPTION VALUE="miserable">Happy
<OPTION VALUE="cheerful">Grumpy
<OPTION VALUE="wide awake">Sleepy
<OPTION VALUE="smart">Dopey
<OPTION VALUE="boastful">Bashful
<OPTION VALUE="breathing">Sneezy
</SELECT>
</FORM>

<P>

<FORM NAME="formName2">
<INPUT TYPE="TEXTBOX" NAME="textboxName1" VALUE="" SIZE=10>
is
<INPUT TYPE="TEXTBOX" NAME="textboxName2" VALUE="" SIZE=10>
</FORM>





Sent by Joe on Thursday August 02, 2007 at 10:45:57 - feedback #4872

Worth:
Very worth reading

Length:

Technical:

Comments:
i need some help please:

this script is close to what im looking for, except i want it to pass information autofilling fields on a form that is on a different page.
basically im building a "teaser" form that just fills in those first few values into a longer form. any help would be appreciated
-Joe




©2018 Martin Webb