Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > workking on controlling HTML froms with javascript

Reply
Thread Tools

workking on controlling HTML froms with javascript

 
 
Mainard
Guest
Posts: n/a
 
      05-10-2005
Hi, all

First off I know alittle about javascript, but i have never worked with
controlling froms with it be for i wonder can some help me?

for example:I have this <textarea name"write1">Write Your
Message:</textarea> on a form called myform2, and i have another form
and textarea on another page. how am i to send the text from one from
to the other form?

if someone could help me i would be gratefil.

 
Reply With Quote
 
 
 
 
marktm
Guest
Posts: n/a
 
      05-10-2005
Try this:

<script>
function copyValue(){
document.form2.text1.value = document.form1.text1.value
}
</script>


1. Enter text in this textarea:
<form name="form1">
<textarea name="text1">

</textarea>
</form>


2. Click here...
<form>
<input type="button" value="copy value" onClick="copyValue();">
</form>

3. your text will be copied to this textarea
<form name="form2">
<textarea name="text1">

</textarea>
</form>

 
Reply With Quote
 
 
 
 
Mainard
Guest
Posts: n/a
 
      05-10-2005
Sorry, but the forms I was talkking about are on different pages
I am trying to make a message borad
unless i need to replace document with the name of my page?

 
Reply With Quote
 
Matthew Lock
Guest
Posts: n/a
 
      05-10-2005
You are going to need some server side script or programs to make a
message board, such as perl, php or asp.

 
Reply With Quote
 
marktm
Guest
Posts: n/a
 
      05-11-2005
Details...LOL

 
Reply With Quote
 
Matthew Lock
Guest
Posts: n/a
 
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing from IE fails due to Froms authentication - Microsoft Bug? Devin Dow ASP .Net 3 03-31-2009 06:08 PM
Role & froms authentication Lloyd Dupont ASP .Net 1 01-07-2006 01:17 AM
Problem With Froms Authentication. HELP JMUApache ASP .Net 3 10-08-2005 12:09 AM
Controlling what kind of HTML is emitted by standard web controls TR ASP .Net 1 05-24-2005 04:02 PM
froms authentication loginurl not found TJS ASP .Net 6 05-17-2005 07:31 PM



Advertisments