473,765 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"loading... " message on dropdownlist?

I have two dropdowns that take a few seconds to populate (they are
populated from a remote database, but the connection to the database is
not the best).

Is it possible to put a 'Loading...' message into the dropdownlist which
will show by default, and then will disappear when the dropdown is
populated?

Maybe this could be done through javascript or otherwise?

thanks.
--

fiddlewidawiddu m
Jan 9 '06 #1
3 2133
Not unless you are populating it via javascript. You can put anything you
want in it on the server - but since the HTML isn't going to get to the
browser until you finish retrieving all the data anyway, the user isn't
going to see the dropdown until then anyway.

"Stimp" <re*@spumco.com > wrote in message
news:sl******** ********@carbon .redbrick.dcu.i e...
I have two dropdowns that take a few seconds to populate (they are
populated from a remote database, but the connection to the database is
not the best).

Is it possible to put a 'Loading...' message into the dropdownlist which
will show by default, and then will disappear when the dropdown is
populated?

Maybe this could be done through javascript or otherwise?

thanks.
--

fiddlewidawiddu m

Jan 9 '06 #2
On Mon, 9 Jan 2006 Marina <so*****@nospam .com> wrote:
Not unless you are populating it via javascript. You can put anything you
want in it on the server - but since the HTML isn't going to get to the
browser until you finish retrieving all the data anyway, the user isn't
going to see the dropdown until then anyway.


I am populating it via javascript...

I have two dropdowns, County and District, that are populated using
javascript so that when County changes, District will also change
without having to reload the page.

Any chance you could show me how to add the 'loading' message in if I'm
pre-populating using javascript?

tia.

--

fiddlewidawiddu m
Jan 9 '06 #3
One idea is to populate it with just 'loading...' on the server, and then on
the client populate it with the real data. so it will start out with
'loading...' and then end up with the real data.

"Stimp" <re*@spumco.com > wrote in message
news:sl******** ********@carbon .redbrick.dcu.i e...
On Mon, 9 Jan 2006 Marina <so*****@nospam .com> wrote:
Not unless you are populating it via javascript. You can put anything you
want in it on the server - but since the HTML isn't going to get to the
browser until you finish retrieving all the data anyway, the user isn't
going to see the dropdown until then anyway.


I am populating it via javascript...

I have two dropdowns, County and District, that are populated using
javascript so that when County changes, District will also change
without having to reload the page.

Any chance you could show me how to add the 'loading' message in if I'm
pre-populating using javascript?

tia.

--

fiddlewidawiddu m

Jan 9 '06 #4

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

Similar topics

1
3386
by: Stacey | last post by:
Hi, I'm hoping for a bit of advise-- I have a (relatively, from the point-of-view of this dilettante) complex script that attempts to preload certain images in order to trigger one of a series of six slideshows (rather than try to articulate, have a look here): http://www.slack.net/~stacey/stestbed/homejs.jsp Clicking any of the six blocks of text along the sides will begin a loop of the corresponding slideshow.
1
1718
by: Stimp | last post by:
I have two dropdowns that take a few seconds to populate (they are populated from a remote database, but the connection to the database is not the best). Is it possible to put a 'Loading...' message into the dropdownlist which will show by default, and then will disappear when the dropdown is populated? Maybe this could be done through javascript?
2
2064
by: dana lees | last post by:
Hi, I am developing a c# asp.net application. I have a button which when i click on i open a pdf file. Since the pdf file is very very large i would like to open a window that says "Loading file..." and when the file is loaded, it will be loaded on the same page. How can i do that?
3
25489
by: bdog4 | last post by:
I've seen on some php forums that they use some type of popup box that I assume is javascript to display a animated gif/flash when you do a quick edit. My popup blocker does not detect it so I leads me to believe it is javascript. Does anyone have an ideas on how I can do this or an example/tutorial? They use it on Invision Power Boards Thanks
3
2466
by: Bri | last post by:
AC97 on WinXP, Image control on a Form and on a Report. I have followed the advice on the following MVPS page: http://www.mvps.org/access/api/api0038.htm This states that after changing the Registry setting for the progress bar to 'no' that it should no longer display. I have made the change, but the progress bar continues to display. Am I missing something? Does the PC need to be rebooted after the
2
2437
by: brianflannery | last post by:
Greetings! My situation is this. I currently have a database of which in a form displays jpeg pictures (one at a time) which are linked to the db and stored in a separate folder. I have set up a report with an image control do display/print 4 pictures on a page. When the report opens (in preview mode) the "loading image" dialog flashes 4 times (once for each picture) which isn't a huge deal, but is annoying. There have been several...
2
5363
by: =?Utf-8?B?Z2VvZmZh?= | last post by:
I cannot figure this out and would appreciate any help..... I have a datagrid view that displays the results from a Stored Procedure. it can take awhile to load..... the stored procedure fires when a Calendar is clicked. ( a date is part of the stored procedure ) How can i just show a new page or a pop-up that says "please wait" until the stored procedure has run and gotten all the data and the page is completely loaded? In all the...
2
1829
by: Curious | last post by:
There's a problem with what is displayed on a tab in my UI. At first, it's a message, "loading...". Then it should be replaced with the actual file name on the tab. Now the issue is that it takes a long time before the message "loading..." is replaced by file name. In my debugger, the switch between "loading..." and file name happens AFTER the last line of code below: void LoadReportFilesWorker_RunWorkerCompleted(object sender,
7
11758
by: saurabhsingh | last post by:
Can anyone plz suggest any Idea that How to implement "loading message" in a site with master pages. I am having Default page which is master page enabled and it contains many Gridviews with database connection. This page is taking so much of time to load therefore I want to show loading message for this page only. Thanks in advance..
0
9568
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
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9957
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
9835
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 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...
0
8832
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
6649
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
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.