Click to See Complete Forum and Search --> : MsoTextbox


kanthan
09-11-2003, 10:46 PM
hi,

how do i pass info between

TEXTAREA class=MsoTextbox id=C1AHPhone

the data store in the above text box and another text box?

Jona
09-11-2003, 11:49 PM
document.forms["form_name"].textarea_name.value=document.forms["other_form_name"].other_textarea_name.value;


[J]ona

kanthan
09-12-2003, 01:58 AM
The form was created by access when creating a html front end. I am not sure what the form is called although does it matter when dealing with text boxes on the same page?

So....

textarea_c1ahphone.value=??????

i am not too clear on what needs to be done. My dialer can dialer what ever number is located in this field...

<INPUT id=TelNumber name=text1>

How do i auto populate the data from c1ahphone to TelNumber?

Jona
09-12-2003, 10:35 AM
Are both of the textboxes in the same form? If so, what is the name of the form? If not, what are the names of the two forms containing each textbox?


<form action="" name="form1"><div>
<input type="text" name="t1" value="Hello" onMouseOver="document.forms['form2'].t2.value=this.value;">
</div></form>

<form action="" name="form2"><div>
<textarea name="t2" rows="15" cols="10"></textarea>
</div></form>


[J]ona

kanthan
09-14-2003, 08:45 AM
ok. a few questions....

how do i work out the form name? is it the name of the file?

what is "form action" ?

Both text boxes are on the same form.

thanks for the help.

pyro
09-14-2003, 08:50 AM
If you post the code you are using, someone can just point out which parts you need to look at...

kanthan
09-14-2003, 09:52 AM
hi,

here is the code...it is messy as much of it is due to formatting thanks to MSOFT access. The field that displays the phone numbers from the database is "C1AHPhone". I need another text box to display whatever data that is displayed in the "C1AHPhone" field. I should be able to reference the second text box to make the dialer worker. If any further code is needed, let me know. thank you.

This is the top part of the form.....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:x =
"urn:schemas-microsoft-com:office:excel" xmlns:a =
"urn:schemas-microsoft-com:office:access" xmlns:dt =
"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><HEAD><TITLE>CC01 09</TITLE><LINK
href="CC01%2010HTML_files/filelist.xml" type=text/xml rel=File-List>
<META content=Access.Application name=ProgId>
<META name=VBSForEventHandlers VALUE="TRUE">
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content=11.00.0000 name=DesignerVersion>
<META content="HTML 4.0" name=vs_targetSchema>
<OBJECT id=MSODSC tabIndex=-1

This is the reference to the "C1AHPhone" source from the database.

style="LEFT: 0.107cm; OVERFLOW: hidden; WIDTH: 1.375cm; COLOR: white; POSITION: absolute; TOP: 0.211cm; HEIGHT: 0.396cm">ClientID</SPAN><TEXTAREA class=MsoTextbox id=ClientID style="Z-INDEX: 30; LEFT: 0.107cm; WIDTH: 1.982cm; POSITION: absolute; TOP: 0.61cm; HEIGHT: 0.502cm" tabIndex=79 cols=14 MsoTextAlign="General"></TEXTAREA><SPAN
class=MSTheme-Label id=C1AHPhone_Label
style="LEFT: 1.402cm; OVERFLOW: hidden; WIDTH: 1.878cm; COLOR: white; POSITION: absolute; TOP: 1.295cm; HEIGHT: 0.396cm">AH
Phone</SPAN><TEXTAREA class=MsoTextbox id=C1AHPhone style="Z-INDEX: 31; LEFT: 1.402cm; WIDTH: 2.588cm; POSITION: absolute; TOP: 1.694cm; HEIGHT: 0.502cm" tabIndex=80 readOnly cols=19 MsoTextAlign="General"></TEXTAREA><SPAN
class=MSTheme-Label id=C1AHSTD_Label

Jona
09-14-2003, 12:08 PM
Apply the same concept as I showed above...


<form action="script_to_which_the_form_will_submit.php" name="form1"><div>
<textarea name="t1" rows="15" cols="20" onClick="this.form.t2.value=this.value;">Value</textarea><br/>
<textarea name="t2" rows="15" cols="20">Value</textarea><br/>
</div></form>


[J]ona