Hi,
i have input type=text and i want to make validation on the onblur (lost
focus) event.
i need to call some javascript function for validation with the control id .
is there something like that possible / documented?
TIA, z. 6 3992
There is indeed an "onblur" event for an input type="text" form field. What
exactly do you want to know?
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message
news:eG******** ******@TK2MSFTN GP09.phx.gbl... Hi,
i have input type=text and i want to make validation on the onblur
(lost focus) event.
i need to call some javascript function for validation with the control id
.. is there something like that possible / documented?
TIA, z.
For client side validation, this would be easy. To mix into the current .NET
framework validation is trickier (most likely subclass the validator with
custom script). There are events to put out JavaScript, but it is not as
easy as just dropping a control and setting properties.
There are support articles on setting focus, which can be used to work your
validation: http://support.microsoft.com/default...b;en-us;316719 http://support.microsoft.com/default...b;en-us;816166
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************** *************** *************** ***
Think Outside the Box!
*************** *************** *************** ***
"z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message
news:eG******** ******@TK2MSFTN GP09.phx.gbl... Hi,
i have input type=text and i want to make validation on the onblur
(lost focus) event.
i need to call some javascript function for validation with the control id
.. is there something like that possible / documented?
TIA, z.
If you want to execute javascript on the client, add this to your page_load:
'With <name of text box here>
'.Attributes.Ad d("onBlue", "<JavaScrip t Function Name ()>")
'End With
Within the <head> tag of your .aspx page, create your fuction to execute for
the onBlur event.
Thanks,
-Rigs
PS for Server side validation, I would use a Custom Validation control to
call a page behind sub or function.
"z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message
news:eG******** ******@TK2MSFTN GP09.phx.gbl... Hi,
i have input type=text and i want to make validation on the onblur
(lost focus) event.
i need to call some javascript function for validation with the control id
.. is there something like that possible / documented?
TIA, z.
NOTE: Please remove the " ' " (apostrophes) from code. They were
accidently left in.
-Rigs
"Rigs" <jc******@spart anmotors.com> wrote in message
news:eh******** *****@TK2MSFTNG P09.phx.gbl... If you want to execute javascript on the client, add this to your
page_load: 'With <name of text box here>
'.Attributes.Ad d("onBlue", "<JavaScrip t Function Name ()>")
'End With
Within the <head> tag of your .aspx page, create your fuction to execute
for the onBlur event. Thanks, -Rigs
PS for Server side validation, I would use a Custom Validation control to call a page behind sub or function. "z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message news:eG******** ******@TK2MSFTN GP09.phx.gbl... Hi,
i have input type=text and i want to make validation on the onblur (lost focus) event.
i need to call some javascript function for validation with the control
id . is there something like that possible / documented?
TIA, z.
sorry i'll make myself more clear:
i'm using a dot net validator, the validator validates the input upon
submit.
i want to call some javascript method, so the validator make validation when
i call it.
is this possible?
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Oc******** ******@TK2MSFTN GP09.phx.gbl... There is indeed an "onblur" event for an input type="text" form field.
What exactly do you want to know?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message news:eG******** ******@TK2MSFTN GP09.phx.gbl... Hi,
i have input type=text and i want to make validation on the onblur (lost focus) event.
i need to call some javascript function for validation with the control
id . is there something like that possible / documented?
TIA, z.
That I don't know. ASP.Net validator classes are designed to work a certain
way. I do my own custom validation, so I'm not as familiar with them as I
ought to be. However, I am reasonably sure that if an ASP.Net validator
Control doesn't do what you want, you could certainly write one that does.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message
news:O8******** ******@TK2MSFTN GP11.phx.gbl... sorry i'll make myself more clear:
i'm using a dot net validator, the validator validates the input upon submit. i want to call some javascript method, so the validator make validation
when i call it. is this possible?
"Kevin Spencer" <ks******@takem pis.com> wrote in message news:Oc******** ******@TK2MSFTN GP09.phx.gbl... There is indeed an "onblur" event for an input type="text" form field. What exactly do you want to know?
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"z. f." <zi**@info-scopeREMSPAM.co .il> wrote in message news:eG******** ******@TK2MSFTN GP09.phx.gbl... Hi,
i have input type=text and i want to make validation on the onblur (lost focus) event.
i need to call some javascript function for validation with the
control id . is there something like that possible / documented?
TIA, z.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: delerious |
last post by:
Please take a look at this page:
http://home.comcast.net/~delerious1/index10b.html
There is javascript code that is executed when the page is loaded. The code
calls the focus() method and then the blur() method on the first anchor in the
box. In IE and Opera the code works. But in Mozilla, you can see the dotted
line around the first anchor, so it's as if the blur() method is not working.
Anyone know what's going on?
|
by: George Hester |
last post by:
http://home.nycap.rr.com/foryorisonly/site.htm
The top one is very different from the bottom one. If you do not recognize the difference
scroll the images to the right. Not that the toolbar File | View is enabled for the top blured
window and disabled for the bottom.
These are the same exact windows both blured using window.blur(); How is it done?
Well to tell you the truth I'd prefer it NOT to happen. I am expecting a window.blur()...
|
by: Ragnorack67 |
last post by:
Hi, is it possible to change a form text field to this.blur() from a
separate function? So, what I want to do is when a button is click it
will runblur(), and cause form input name "xyz" to go into a
this.blur() state so nobody can type into it. Can this be done?
Thanks for anyone's help!
Sincerely,
Alex
|
by: MikeinDC |
last post by:
I found some free js that I want to use in a class project.
The original HTML used <form name="form1"> and the W3C validator I am required to use fails it. It says there is no attribute"name". When I change it to <form id="form1"> the page validates but the js does not work.
It will validate in Tidy, but not W3C...Help! Here is the script and code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
|
by: 4Ankit |
last post by:
hello all, i am having trouble understanding what the difference is
between BLUR and FOCUS. I need to include these functions in my form
and i am unsure what these features do and how i incorporate these
into my form. All help would be much appreciated.
| |
by: Gerdus van Zyl |
last post by:
Does anyone have a relatively fast gaussian blur implemented in pure
python? Below is my attempt but it takes 2.9 seconds for a 320x240
image. Image comes from byte string: self.array =
array.array('B',srcstring). Would some sort of matrix multiplication
be faster? I don't have experience in that.
I don't want to use PIL or http://filters.sourceforge.net/ to avoid
the 300kb dll just for a simple blur.
|
by: chicorbleak |
last post by:
Hello,
I'm looking for an image manipulation library which would allow me to
blur an oval-shaped part of my picture, instead of the whole thing. I
couldn't find a way to do this using the
tools I see in the API of Python Imaging Library.
If you know how to do this, I'd appreciate it if you left a note.
Thanks
|
by: rajkm42 |
last post by:
Hi friends,
I have a gridview which loads an XML file to display a textbox and
other dropdownlists. Which is used for data entry.
The user will enter an empid in the textbox. Once leaving the
textbox(for example after pressing tab), I need to fire Blur event of
that textbox and retrieve the empname and display in the next column
of the textbox in the gridview. How can I fire the blur event of
textbox?
|
by: dolittle |
last post by:
Hi,
I have a 2 popup windows each with a textarea. I`ve attached 'blur' event to both of them. It works fine but if the cursor is inside the textarea and I`m click on the other window, the blur event won`t fireon FF.
On IE7 it works fine.
Is there a workaround?
Thanks
|
by: SpaceMarine |
last post by:
hello,
when it comes to dhtml-based modals (as opposed to actual modal dialog-
windows or popups), an effect seen all over the web is to render the
background content a translucent shade of dark gray. but something i
have only seen in one place is -- blurring the background. that is,
the content area "behind" the modal is not only gray, but uniformly
blurred. like this:
http://semi-suave.com:81/temp/blur.png
|
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...
| |
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |