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

how to pop up a Modeless Dialog only when some conditions are reached?

I have implemnt a onBlur event of a text input.

In the event, a window with all records which related to the text
input will be shown.
However, I don't want to pop up the window in case there is no records
that matching the text input.

Any idea ?
Thanks
Jul 20 '05 #1
2 2035
In article <49*************************@posting.google.com> , yw****@hkem.com
(ywchan) writes:
I have implemnt a onBlur event of a text input.
Use the onchange instead. If I go to the field, change it, leave, see the popup
and then go back to it (either intentionally or by mistake) and don't change
anything, when I leave, I will get the popup again. Onchange only fires when
its actually changed.
In the event, a window with all records which related to the text
input will be shown.
However, I don't want to pop up the window in case there is no records
that matching the text input.
Where are you having to check for "records"? In a js array, or on the server?
Any idea ?
Yeah, lots of ideas.
Thanks


Welcome.
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.
Jul 20 '05 #2
hi************@aol.com (HikksNotAtHome) wrote in message news:<20***************************@mb-m07.aol.com>...
In article <49*************************@posting.google.com> , yw****@hkem.com
(ywchan) writes:
I have implemnt a onBlur event of a text input.


Use the onchange instead. If I go to the field, change it, leave, see the popup
and then go back to it (either intentionally or by mistake) and don't change
anything, when I leave, I will get the popup again. Onchange only fires when
its actually changed.
In the event, a window with all records which related to the text
input will be shown.
However, I don't want to pop up the window in case there is no records
that matching the text input.


Where are you having to check for "records"? In a js array, or on the server?
Any idea ?


Yeah, lots of ideas.
Thanks


Welcome.


Actually, I will use the value input by user and check whether there
are records exist in database(using vb script).
I would like to know how to pop up a window only when certain
conditions are satisified.
Can I get the value input by user and immediately use in vb script for
checking?
Thanks
Jul 20 '05 #3

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

Similar topics

3
by: Rikkert | last post by:
I can't get my custom-made modeless dialog box (Visual C++.net Win32) to respond to clicking the close button or pressing Alt-F4. I am using the IsDialogMessage to check if messages are for my...
1
by: Carmine | last post by:
I'm currently writing a small program that churns on a repetitive task while displaying a progress & cancel modeless dialog. I've been having problems due to threadlocking, and I was wondering if...
0
by: Andrew | last post by:
I get a Null Reference Exception if I close a modeless form (that is, a form displayed using Show()) when a selection is made from a ComboxBox. If the form is modal (displayed using ShowDialog())...
2
by: Legendary Pansy | last post by:
Hello, I'm trying to accomplish the impossible by trying to do something equivalent of this example found here http://www.c-sharpcorner.com/Code/2003/Dec/DialogTutorial.as Starting with "Listing...
1
by: andrew | last post by:
Hi there, I'm having a problem with a modeless form in my app. I have a main form in my app and a socket that waits on data from a server (I use BeginReceive/EndReceive for that) and when I...
2
by: proit_123 | last post by:
I am working on a windows forms application and have the following requirement. · I need to display a modeless dialog from the main form. o This allows user to continue to work with the...
8
by: proit_123 | last post by:
I am working on a windows forms application and have the following requirement. I have two projects in my application Project A and Project B. And Project A has the reference of Project B. I...
0
by: Ralstoj | last post by:
Hi I am programing in Autocad with VB Autodesk have not given users access to new note function in Autocad CIVIL3d API. I am trying to work round this by creating notes using the sendkey...
3
by: DoB | last post by:
What is the preferred way to refresh modeless dialogs? I am using the modeless dialog that shows a progress of a sequential process. The dialog class has nonvisual properties containg the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.