473,387 Members | 1,512 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,387 software developers and data experts.

anyone good with java script-toggle text on input button

Hi I need to toggle the text on an html input button in a .net web application.
the name of the button is btn_hide and I do have an onclick function for it.

<script language="javascript" type="text/javascript">
// <!CDATA[

function btn_hide_onclick()
{

}

// ]]>
</script>
--
thanks,
Paul G
Software engineer.
Mar 28 '08 #1
3 1548
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:8E**********************************@microsof t.com...
<script language="javascript" type="text/javascript">
Firstly, get rid of the language tag, as that's deprecated syntax...
Hi I need to toggle the text on an html input button in a .net web
application.
Toggle? From what to what? I.e. what precisely do you want to happen when a
user clicks the button...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 28 '08 #2
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:39**********************************@microsof t.com...
just wanted the text to change back and forth each time the user clicks on
it
OK, but change from what to what...?
Should the <script language="javascript" type="text/javascript"be
removed?
No. As I said, the language tag should be removed as it is deprecated:
http://www.google.co.uk/search?sourc...ipt+deprecated
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 28 '08 #3
ok thanks I removed the language tag. I am changing the value of the button
from hide to expand as I am collapsing and expanding a panel.

--
Paul G
Software engineer.
"Mark Rae [MVP]" wrote:
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:39**********************************@microsof t.com...
just wanted the text to change back and forth each time the user clicks on
it

OK, but change from what to what...?
Should the <script language="javascript" type="text/javascript"be
removed?

No. As I said, the language tag should be removed as it is deprecated:
http://www.google.co.uk/search?sourc...ipt+deprecated
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 31 '08 #4

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

Similar topics

4
by: Andy R. | last post by:
Hello everyone, I've spent quite some time now, looking for some information on how to get this done, sadly none has helped me much, though. I have a bit of java scrpt on a webpage (.php) to...
4
by: Laura P | last post by:
Hi, I wasn't sure whether this should be posted in the Java are or in a Solaris thread, so I shall post it in both. Sorry for the duplication. I am new to Solaris and am having trouble...
10
by: Dr. Mercury | last post by:
Greetings to all - Someone suggested that Java might be the answer for a little conversion program I need. It's pretty simple, really. Just take a column of numbers: 139 259 433 637
2
by: enclume42 | last post by:
Hello, I am a pure Linux guy. I wrote a Java program that is going to be used by some Windows people, and I wish the startup of the program to be as simple as possible, namely to double-click on...
0
by: Mircea Pleteriu | last post by:
Hi all, I have created a .NET Windows control with c#. I have placed the control on a HTML page within the OBJECT element. Everything works fine up to now. Now, I wanna implement the...
5
by: Simon Egginton | last post by:
Does anyone know how to make a CHAT ROOM for a webpage using java or jave script please. I am just look at you lot because i think you are the experts! THANK YOU! ewhost_simon"HI"@yahoo.co.uk...
2
tpgames
by: tpgames | last post by:
I have a question: does anyone know of a Java Script (not java) chess game in which the IA is actually intelligent? The one on my site is not intelligent, as I almost beat the computer. I play...
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
1
by: DivyaSindhu | last post by:
hi there..... I need to review the javascript which is running thousands of lines can you please suggest me some good reviewing tools for java script. please let me know in case there are some...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.