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

document.getElementById(sender.controltovalidate) attributes

Hi. I'm writing a Javascript subroutine for client side validation
using a custom validator.

I know I have the ".value" attribute available, and want to know that
other attributes I can access and how to show their values.

I expect they'll vary depending on the class of the controltovalidate,
but I was initially looking for the "header text" on a textbox which
is being validated.

Any help for a noob would be great.

Cheers
Jun 27 '08 #1
2 3094
"DaveyP" <da************@gmail.comwrote in message
news:50**********************************@f36g2000 hsa.googlegroups.com...
Hi. I'm writing a Javascript subroutine for client side validation
using a custom validator.
OK.
I know I have the ".value" attribute available, and want to know that
other attributes I can access and how to show their values.
OK.
I expect they'll vary depending on the class of the controltovalidate,
That's correct.
but I was initially looking for the "header text" on a textbox which
is being validated.
An <asp:TextBoxweb control is rendered as an <input type='text'HTML
control, neither of which as a "header text" property - can you explain what
you actually mean by this...?
http://msdn2.microsoft.com/en-us/library/fhc2c904.aspx
http://www.w3schools.com/TAGS/tag_input.asp
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
DaveyP wrote:
Hi. I'm writing a Javascript subroutine for client side validation
using a custom validator.

I know I have the ".value" attribute available, and want to know that
other attributes I can access and how to show their values.

I expect they'll vary depending on the class of the controltovalidate,
but I was initially looking for the "header text" on a textbox which
is being validated.
This is a good starting place:
http://www.w3schools.com/htmldom/dom_reference.asp

What properties are accessible to the JS will depend on the type of element. In
some cases there will be variance between browsers as well.

Chris.
Jun 27 '08 #3

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

Similar topics

2
by: Gabe Moothart | last post by:
I would like to be able to dynamically change the attributes of an <area> element in an image map. The following works in IE 6 and Opera 7: <map name="Map1"> <area shape="rect"...
4
by: Mike Clair | last post by:
Hey, I'm having an issue with CSS, JS and the DOM. It's gonna drive me batty. I am trying to access the properties of a layer in JS which have been initially set in an external CSS. The problem...
2
by: Gary Mayor | last post by:
Hi, I'm back again. Basically i'm trying to draw a box over an image which is turning out to be a nightmare. The problem i'm getting at the moment is that i'm creating a line with <div which works...
10
by: andreister | last post by:
He there! I've discovered that the ================================================= document.links('link_id_here').href = "something"; ================================================= is...
20
by: weston | last post by:
I've got a piece of code where, for all the world, it looks like this fails in IE 6: hometab = document.getElementById('hometab'); but this succeeds: hometabemt =...
1
by: Tina | last post by:
How can I reference attributes of the Document from my codebehind file. Attributes such as Background, bgColor, leftmargin, text, etc. Thanks, T
1
by: Andre Ranieri | last post by:
Hello, I'm trying to set up an ASP.NET 2.0 form where the user enters values in WebControls.TextBoxes for amount owing, interest and late fees and a JavaScript function totals the three values...
2
by: P4trykx | last post by:
Hello I'm want to add some custom attributes to WebControls using WebControl.Attributes.Add("abc","234"); So the html output will look like this, <input type="hidden" abc="123" /etc. I know...
3
by: phpmel | last post by:
hi guys, here is my problem. i have a js function called changemsg that takes a label in an aspx page and sets its text to blank. <script type="text/javascript" > function...
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
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
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
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...
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.