473,803 Members | 4,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Basic Javascript question

How do I attach a client-side validation script in a web form page for a
text box control. The intellisense dropdown does not show the common
"OnChange" event.

Any help is greatly appreciated.

Regards,
AG
Nov 18 '05 #1
3 1309
I think you need to use the textchanged event, the
intellisense dropdown lets you choose "ontextchanged" .

Hope this helps :)

-----Original Message-----
How do I attach a client-side validation script in a web form page for atext box control. The intellisense dropdown does not show the common"OnChange" event.

Any help is greatly appreciated.

Regards,
AG
.

Nov 18 '05 #2
Hi
Here is a sample code which is used to attach a server
side control to the client side javascript.

txtSenderName.A ttributes.Add(" onClick","retur n doValidate
();");
<controlname>.A ttributes.Add(" <event name of the
control>","<jav ascript function name>");

thanks
srinivas moorthy

-----Original Message-----
How do I attach a client-side validation script in a web form page for atext box control. The intellisense dropdown does not show the common"OnChange" event.

Any help is greatly appreciated.

Regards,
AG
.

Nov 18 '05 #3
Thanks for your prompt response. Appreciate it!

If I use the "OnTextChan ged" event, I get a compile error; in fact I do not
get any errors if I choose "Onchange" event even though the event is not
available in intellisense. I would assume that one can only code for those
members that show up in intellisense. Maybe I am wrong!! Would appreciate
any further clarification.

Thanks

AG

Thanks for your prompt response. Appreciate it!

If I use the "OnTextChan ged" event, I get a compile error; in fact I do not
get any errors if I choose "Onchange" event even though the event is not
available in intellisense. I would assume that one can only code for those
members that show up in intellisense. Maybe I am wrong!! Would appreciate
any further clarification.

Thanks

AG

Thanks for your prompt response. Appreciate it!

If I use the "OnTextChan ged" event, I get a compile error; in fact I do not
get any errors if I choose "Onchange" event even though the event is not
available in intellisense. I would assume that one can only code for those
members that show up in intellisense. Maybe I am wrong!! Would appreciate
any further clarification.

Thanks

AG

"Dune" <an*******@disc ussions.microso ft.com> wrote in message
news:06******** *************** *****@phx.gbl.. .
I think you need to use the textchanged event, the
intellisense dropdown lets you choose "ontextchanged" .

Hope this helps :)

-----Original Message-----
How do I attach a client-side validation script in a web

form page for a
text box control. The intellisense dropdown does not

show the common
"OnChange" event.

Any help is greatly appreciated.

Regards,
AG
.

Nov 18 '05 #4

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

Similar topics

2
5786
by: bbxrider | last post by:
i'm new to javascript but have programmed lots in vb, cobol, basic, etc jscript seems much more object oriented to me, much more direct manipulation of properties at least, than vb, don't know about methods yet i'm having trouble locating property 'trees' so to speak, at least for html/web and jscript objects like in this code: function MM_preloadImages() { var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var...
1
1809
by: bj | last post by:
I have several pages that I want to allow the same kind of activity, so my basic question is how best to structure the interaction (and I have one related subquestion as well). Scenario: The user clicks a hyperlink and opens a new window in which there is a bit of explanatory text. This text will be different for every link. In addition, there is an image on the page which can be clicked to close the new window. (This image should...
2
1492
by: Eli | last post by:
Hi gurus, My question is about exchanging data on a basic HTML page between a JavaScript piece of code and a Java client-side <APPLET> residing on the same webpage. To demonstrate the idea of data encription at the client side to students my idea is to build a simple <FORM> on the webpage with 2 text fields and a submit button. The student fills in the text field on top and click Submit. At this moment, onsubmit() sends the text field...
17
2420
by: blueapricot416 | last post by:
This is a very basic question -- but I can't find the answer after looking for 20 minutes. If you code something like: function set_It() { setTimeout('Request_Complete("apple", -72)',5000) } and call it 50 times, will it cause problems because you are not
6
1403
by: John Bailo | last post by:
http://www.informationweek.com/software/showArticle.jhtml?articleID=196600515 Developers Embrace Java, Drop Visual Basic "Developers have abandoned Microsoft's Visual Basic in droves during the last six months, and they're using Java more than any other development language, according to a recently published survey."
2
1516
by: craig.burrell | last post by:
I'm not a Javascript programmer, and I have a basic question about how scripts may make use of libraries in Javascript. I thank everyone for humouring me. Do all of the libraries required by a script have to reside in the host environment, or may a custom library be bundled with the script itself? I ask because I am trying to assess the significance of Alexander Sotirov's <a href="http://www.determina.com/security.research/
43
2408
by: Bill H | last post by:
25 years ago every computer came with some form of Basic interpreter so you could use yoru computer without having to buy more software. Is Javascript (teamed with HTML) set to become the new Basic, where anyone with a computer can start writing code without having to purchase any expensive languages? Bill H
7
1731
by: MikeB | last post by:
Hello All, I am new to ajax and wanted to start by trying something simple. I have a web form with an updatepanel and then inside the update panel I have a listbox. Then outside of the updatepanel I have a button. In my buttons click event in the cs / code behind, I have a loop that just inserts items in the listbox. My question is, once I click the button and the loop begins, how do I get it to update the listbox? Does this make since?...
12
1642
by: sheldonlg | last post by:
This is kind of basic, and I googled but didn't find much help. I have an array of text element fields. They all need to have the same name. So, let the name be either all with a or build individually as a, a, a, etc. The brackets need to be there because I will obtaining the values of them as an array using $_POST{'a'] in php. What I want to do is in javascript set the value of an individual element, say a. I have tried many...
7
17963
by: rmurgia | last post by:
When a variable is created using Javascript, should it then be able to be read immediately using embedded VB code or does the submit command have to be entered or are the variables between javascript, visual basic, and vbscript non-interchangable? I created the following code: <script language="javascript"> function question(){ strReply = confirm('Click Yes if you wish to continue.') alert(strreply) } </script>
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.