473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Visible button after update in form elements

Hi.
I have a form with three <textarea> and one <input> element. When either of
these are changed I want an "Update" button to be visible at the bottom of
the form. I've tried this:

On every element I've added this trigger:
onChange='jsVwBtn()'

Function like this:
function jsVwBtn()
{document.form1.btnupdate.type = "button";}

Default the btnupdate type is set to "hidden".

Some of you might start to laugh now, but as you continue do that please
give some "state of the art" way to do this.....

Regards
Mr. Smith

Jul 21 '05 #1
2 1803
Try this:
<table width=400 cellpadding=0 cellspacing=0 border=1>
<form name="frmMain" method="post">
<tr>
<td width="100%" align="center">
<textarea cols="60" rows="10" name="txt1"
onChange="txtonChange()"></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center">
<textarea cols="60" rows="10" name="txt2"
onChange="txtonChange()"></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center">
<textarea cols="60" rows="10" name="txt3"
onChange="txtonChange()"></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center">
<input type="button" name="btnOne" value="update" style="visibility:
hidden;">
</td>
</tr>
</form>
</table>
</body>
</html>

<script language=javascript>
function txtonChange()
{
document.frmMain.btnOne.style.visibility = "visible"
}

</script>
"Mr. Smith" wrote:
Hi.
I have a form with three <textarea> and one <input> element. When either of
these are changed I want an "Update" button to be visible at the bottom of
the form. I've tried this:

On every element I've added this trigger:
onChange='jsVwBtn()'

Function like this:
function jsVwBtn()
{document.form1.btnupdate.type = "button";}

Default the btnupdate type is set to "hidden".

Some of you might start to laugh now, but as you continue do that please
give some "state of the art" way to do this.....

Regards
Mr. Smith

Jul 21 '05 #2
My man!

Thanks a lot.

Mr.Smith
"John Beschler" <Jo**********@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com...
Try this:
<table width=400 cellpadding=0 cellspacing=0 border=1>
<form name="frmMain" method="post">
<tr>
<td width="100%" align="center">
<textarea cols="60" rows="10" name="txt1"
onChange="txtonChange()"></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center">
<textarea cols="60" rows="10" name="txt2"
onChange="txtonChange()"></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center">
<textarea cols="60" rows="10" name="txt3"
onChange="txtonChange()"></textarea>
</td>
</tr>
<tr>
<td width="100%" align="center">
<input type="button" name="btnOne" value="update" style="visibility:
hidden;">
</td>
</tr>
</form>
</table>
</body>
</html>

<script language=javascript>
function txtonChange()
{
document.frmMain.btnOne.style.visibility = "visible"
}

</script>
"Mr. Smith" wrote:
Hi.
I have a form with three <textarea> and one <input> element. When either of these are changed I want an "Update" button to be visible at the bottom of the form. I've tried this:

On every element I've added this trigger:
onChange='jsVwBtn()'

Function like this:
function jsVwBtn()
{document.form1.btnupdate.type = "button";}

Default the btnupdate type is set to "hidden".

Some of you might start to laugh now, but as you continue do that please
give some "state of the art" way to do this.....

Regards
Mr. Smith

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave R | last post by:
Hey everybody! I'm in dire need of some help. I'm trying to loop through all the elements in a form, and determine whether or not the field is visible. Kinda like this: var TForm =...
5
by: Lyn | last post by:
Hi, I have a form which contains a number of subforms in different pages of a tab control. In the detail section of each subform, I list records related to the main form record, but from...
3
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
4
by: Confused White Guy | last post by:
I have a C# winforms app in which I am calling a method on a different thread, using the Thread.Start() method. The method that is being executed on the new thread attempts to make a button visible...
16
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
2
by: Darren | last post by:
Hi, I have a command button which has a macro running in it. The macro on the click event, runs to ensure that certain values in a form are valid, (e.g. the textboxes are not null) and...
8
by: Midgard | last post by:
Hi, I have this ajax script ajax.js var http_request = false; function update(formid,divid){ document.getElementById(divid).innerHTML="Please wait ..." var form =...
5
by: Doogie | last post by:
Hi, I am trying to access the visible property of an ASP button inside javascript to no avail. Here's what my button control looks like: <asp:Button id="btnAcceptTrips" name="btnAcceptTrips"...
1
by: feeman | last post by:
I have a form in access 2000 with a combo box containing names, this is linked to a sub form by the name index. on the sub form is a button that when pressed automatically enters the date into the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.