Hi everyone,
I am using a popup window to display a calander control.
When the user select a date the date on the main window
is set to the selected date and the popup closes useing
javascript.
The problem is this bypasses the form validation on the
main page and the error message is not dispalyed untill
the form is submited. I need to be able to validate the
date entered as soon as it is selected, and not wait till
the form is submited.
Does any one know how to raise an event on the main
window when the value of one of its controls is set by
its child.
Thanks in advance
Jake
Cheers jake 3 5273
Jake Hi,
If you will take a look at WebUiValidation .js (which holds the
validation code) you can see that the validetor hook the onchange event.
Try to call the onchange event of the control after you change its
value.
Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Natty,
Thanks for your feedback. I have implemented your
suggestion of useing the ValidatorValida te() method of
the .js file and it works fine.
The only limitation I have now is i dont know how to
reference the function from the popup. I can only call
it from the parent useing:
onClick="javasc ript:ValidatorV alidate(vldComp FromDate);"
Would you know how to call it from the child?
I have tried the following and that didnt work:
window.opener.V alidatorValidat e('vldCompFromD ate');
Cheers Jake -----Original Message----- Jake Hi,
If you will take a look at WebUiValidation .js (which
holds thevalidation code) you can see that the validetor hook the
onchange event.Try to call the onchange event of the control after you
change itsvalue.
Natty Gur, CTO Dao2Com Ltd. 34th Elkalay st. Raanana Israel , 43000 Phone Numbers: Office: +972-(0)9-7740261 Fax: +972-(0)9-7740261 Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com
***Don't just participate in USENET...get rewarded for it! .
Natty,
Thanks for your feedback. I have implemented your
suggestion of useing the ValidatorValida te() method of
the .js file and it works fine.
The only limitation I have now is i dont know how to
reference the function from the popup. I can only call
it from the parent useing:
onClick="javasc ript:ValidatorV alidate(vldComp FromDate);"
Would you know how to call it from the child?
I have tried the following and that didnt work:
window.opener.V alidatorValidat e('vldCompFromD ate');
Cheers Jake -----Original Message----- Jake Hi,
If you will take a look at WebUiValidation .js (which
holds thevalidation code) you can see that the validetor hook the
onchange event.Try to call the onchange event of the control after you
change itsvalue.
Natty Gur, CTO Dao2Com Ltd. 34th Elkalay st. Raanana Israel , 43000 Phone Numbers: Office: +972-(0)9-7740261 Fax: +972-(0)9-7740261 Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com
***Don't just participate in USENET...get rewarded for it! . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stefan Richter |
last post by:
Hi, after coding for days on stupid form validations -
Like:
strings (min / max length), numbers(min / max value), money(min / max
value), postcodes(min / max value), telefon numbers,
email adresses and so on.
I thought it might be a better way to programm an automated, dynamic
form validation that works for all kinds of fields, shows the
necessary error messages and highlights the coresponding form fields.
|
by: Gérard Talbot |
last post by:
Cross-posted to: comp.infosystems.www.authoring.html and alt.html
Followup-to: comp.infosystems.www.authoring.html
1- One day, I stumbled across a website that offers to validate
webpages. What was really special about that site is that the validation
service was available in Russian, German, Spanish and English. Now, I
can't find this site anymore. I did search google. Do you know such
site? What's its url?
2- Generally speaking, the...
|
by: Matt |
last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or
Client-Side form validation? Since I think each validator control can select
either 1) JavaScript based error dialog or 2) show the error message next to
the control. For example, if the text field is empty with RequiredField
Validator control, it can show the value in ControlToValidate property in
two ways as I mentioned.
Please advise. Thanks!
|
by: Andy Eshtry |
last post by:
I need to validate a textbox control using the validation control so that
user can enter only string (character) type not numbers
I used comparevalidator and set the "Operator" property to "Datatype check"
and "Type" property to "String" but I can enter numbers and this is not I
want.
Also I used Regular expression validator and set the validation expression
to "\w {n}" means any number of characters or \w {n} means only
characters...
|
by: Nalaka |
last post by:
Hi,
I suddenly started getting a lot of errors from html validation (some CSS)
so I followed the following instructions to disable it.
If you'd rather not have these types of HTML validation errors show up in
your error-list, you can disable this functionality by selecting the
Tools->Options menu item in VS or Visual Web Developer. Select the
TextEditor->Html->Validation tree option in the left-hand side of the
| |
by: Rik |
last post by:
Hello guys,
now that I'm that I'm working on my first major 'open' forms (with
uncontrolled users I mean, not a secure backend-interface), I'd like to add
a lot of possibilities to check wether certain fields match certain
criteria, and inform the user in different ways when the data is wrong
(offcourse, this will be checked on posting the data again, but that's
something I've got a lot of experience with).
Now, offcourse it's...
|
by: John Chan |
last post by:
Hi,
Im doing a maintenance application in ajax and coldfusion at work on IE6
exclusively. I have a save button on each form and i have to do various
validations server side and on client side when the user clicks save i.e
check that user exists in table, check users password is the same as
password in table, check password is valid, check that logged in user is a
super user etc etc to get the correct error message. Different forms may or...
|
by: Jon Paal |
last post by:
validation doesn't fire
what's missing ?????
/////// ---- code -----///////////////////////////
Sub btnSubmit_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) 'Handles btnSubmit.Click
If page.isValid then
.....
end if
|
by: hardieca |
last post by:
Hi!
I have a CreateUserWizard control with the usual suspects of
validators. As you're probably aware, each validator is associated
with one of CreateUserWizard's child controls.
When a user clicks on the Create User button on the first page,
validation occurs with javascript turning on a ValidationSummary, so
no postback occurs. For accessibility reasons, I would like the page
to be posted back so screen readers would be able to find...
|
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...
|
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: 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: 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...
|
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();...
|
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...
|
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...
| |