hi,
had a question on preloading a dropdown. we have a textbox and
dropdown on the page, user is suppose to enter in a zip into textbox,
then the dropdown should load the state based on the zip. we can pull
the state from the database on a zip match table, but how do we preload
the dropdown, is there a way without posting back? 3 1999
You need to use client-side code for this, not server-side, ergo, your
question would be best placed in a JScript, Javascript or VBScript
newsgroup.
As a little hint, do a search for MM_jumpMenu ;o)
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"phil2phil" <ph*********@ya hoo.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . hi, had a question on preloading a dropdown. we have a textbox and dropdown on the page, user is suppose to enter in a zip into textbox, then the dropdown should load the state based on the zip. we can pull the state from the database on a zip match table, but how do we preload the dropdown, is there a way without posting back?
phil2phil wrote: hi, had a question on preloading a dropdown. we have a textbox and dropdown on the page, user is suppose to enter in a zip into textbox, then the dropdown should load the state based on the zip. we can pull the state from the database on a zip match table, but how do we preload the dropdown, is there a way without posting back?
You'll have to postback. This can be done without submitting your form by
using the XMLHTTP object. Google for that term to get an overview and some
examples of its use. Followup questions can be posted to a client-side
scripting newsgroup such as m.p.scripting.j script
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Don't know how it works exactly over there...
You could have the whole list (basically the first few numbers of the zip
and the corresponding state ?) rendered as a JavaScript array and select the
appropriate records when the zip code is entered... This way you won't have
a postback. It assumes the list is quite short...
--
"phil2phil" <ph*********@ya hoo.com> a écrit dans le message de
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . hi, had a question on preloading a dropdown. we have a textbox and dropdown on the page, user is suppose to enter in a zip into textbox, then the dropdown should load the state based on the zip. we can pull the state from the database on a zip match table, but how do we preload the dropdown, is there a way without posting back? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MALdito |
last post by:
hi everybody
let me say right from the start .. I´m not a coder ... "just" a designer!
that said .. here is my question:
I´m using dreamweaver´s built in preloader for a menu. it looks like this:
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
|
by: Max Biancofiore |
last post by:
I am working on a website.
Can everybody have a look at www.intheloop.org.uk/sw5/index.html and
tell me:
1) How long do the buttons take to download. (state connection speed
too).
2) How do the rollover work. Especially concerning the image preload.
I am writing this because, I don't know why, on my Pc this site works
|
by: Albert Spencil |
last post by:
I have tried several preload scripts found here; plus, some of my own.
The only thing that works is the unsophisticated loading of those
tiny images. The download consist of 100+ images amounting to 50+mb;
and, normally completes in less than 1 minute without preload (using
DSL). The preload terminates after 6 or 7
images and seems to time-out in the middle of an image. A reload will
download a few more, etc. I have used the <body...
|
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.
|
by: Peter Fastré |
last post by:
Hello
The javascript preload function I always used, is causing problems with
the latest version of gecko-browsers. Never had any problems with it though.
Maybe there's something wrong?
http://pfastre.no-ip.com/arg/
http://pfastre.no-ip.com/lunatis/
http://pfastre.no-ip.com/gsm/
....
| |
by: misdst23 |
last post by:
Hi,
I would like to use the preload feature to transmit data from the
client to the server. I use the SRC attribute of the image to compose
the URL and transmit the info. How can i do this?
Any sample code ?
|
by: shapper |
last post by:
Hello,
I think to preload an image I should us something like:
img = new Image();
img.src = 'images/img.jpg';
Could someone tell me how to create a loop which would preload a list
of images?
Something like:
|
by: =?Utf-8?B?Q2FzcGE=?= |
last post by:
Is there any way to preload an image returned by an HTTP Handler?
My image HTTP handler is generating some thumbnails that I want to preload.
thanks
Caspa
|
by: shapper |
last post by:
Hello,
Is there a way to preload a few images of a page using only CSS?
If yes, how can I do it, and should I use CSS or Javascript to do
this?
Thanks,
Miguel
|
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: 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,...
| |
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: 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: 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: 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: 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: 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...
| |