473,785 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drop down using Ajax

30 New Member
I need a sample code for the ajax program when i click the country (drop down)

i want to get the values for this from the database and setting it in the another drop down nearer to country which is for state without refreshing the page.. please very urgent need
Oct 9 '07 #1
5 1921
dmjpro
2,476 Top Contributor
I need a sample code for the ajax program when i click the country (drop down)

i want to get the values for this from the database and setting it in the another drop down nearer to country which is for state without refreshing the page.. please very urgent need
Fine :-)
Have a look at this.
Then try some code.
Don't worry we are here with you :-)

Debasis Jana
Oct 9 '07 #2
elangobala
30 New Member
Hi, Friends I need a very urgent help from yours...


My problem is I have two drop down list boxes.. One s listing the countries and the another one to list the state from the database. when i select the country in the first drop down it should select the appropriate state from the database without (ajax )page reloading..Plea se anyone send me the sample code for this..i need it on within monday ,i believe that anyone help me
Oct 11 '07 #3
dmjpro
2,476 Top Contributor
Hi, Friends I need a very urgent help from yours...


My problem is I have two drop down list boxes.. One s listing the countries and the another one to list the state from the database. when i select the country in the first drop down it should select the appropriate state from the database without (ajax )page reloading..Plea se anyone send me the sample code for this..i need it on within monday ,i believe that anyone help me
Do Google for it for sample Code.
Or read the articles here.
Then have a try by ownself.
Then come here with your code related problem.

Debasis Jana
Oct 12 '07 #4
acoder
16,027 Recognized Expert Moderator MVP
Threads merged. Do NOT double post.
Oct 15 '07 #5
ronverdonk
4,258 Recognized Expert Specialist
Hi, Friends I need a very urgent help from yours...


My problem is I have two drop down list boxes.. One s listing the countries and the another one to list the state from the database. when i select the country in the first drop down it should select the appropriate state from the database without (ajax )page reloading..Plea se anyone send me the sample code for this..i need it on within monday ,i believe that anyone help me
See THIS THREAD

Ronald
Oct 15 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1404
by: Steve JORDI | last post by:
Hi, I'd like to know whether there is a class or some code sample available somewhere to do what I'd like to achieve. I have two drop down menus next to each other. The first one has its content dynamically loaded from a database and I want the second drop down to be updated, also from a DB request, accordingly to the user selection in the first one.
3
6899
by: Yi Chen | last post by:
We have a drop down list on a PHP page, with several product names, and when people click one item, we will refresh the same page with the product name as parameter, and in turn we want to include a HTML file into the content area of the same page. I know it is recommended to put everything into database, but we want the web site to be very "portable", so the drop-downlist and the content should both in text files. Let's say the...
1
3594
by: Jeff Gardner | last post by:
Greetings: I have a table with 3 pieces of data that I would like to use to dynamically populate 3 drop downs using javascript. The fields are state, orgname, office. If it's not already obvious, I'd like orgname drop down to change when a state is selected and I would like office drop down to change when an orgname is selected. I can do this with multiple tables but am having difficulty getting it to work when the data is in the...
1
1856
by: Boris Twila | last post by:
I just want to have 1 drop down list fill the other drop down list without a round trip. Is there some really simple ajax thing i can copy and use, or is it a big deal do i habe to install an ajax server or something
2
6931
by: kalaivanan | last post by:
hi, i am developing web application using c#. in a particular page i am using two drop down list boxes, one for product and the other for corresponding models of a product. whenever i select a product the corresponding models will be populated in the model drop down list. and i am using ajax for populating the model ddl. hence the model ddl will be populated at the client. now when i do my processing using the datum in the page i am...
6
3087
by: Rob Meade | last post by:
Hi all, Looking for a bit of help if possible. For about 2 weeks now I've been investigating the best way to populate related drop down menus, and have their values pre-populated again if the user clicks back with their selected options still selected - and I'm getting to the point where I might just popup a big window, perhaps with some flash in it and say "dont be lazy, select em again you great big freak of nature" because I am...
7
22495
controlbox
by: controlbox | last post by:
I have recently inplemented some drop-down lists (combos) on a page where one is dynamically populated according to the selection of another using the microsoft ajax extensions. I had to set AutoPostBack = true, and enable viewstate in order for the serverside events to fire, but once this was done, all seemed well - so far so good... Also, when the page form is submitted, the Javascript validateForm() function is executed to perform...
1
1491
by: krishemanth | last post by:
sir, I want to update a value in dropdown using ajax i had a listing of some categories in dropdown along with that i had an add category in that dropdown box when select that addcategory option It opens a popup and add a new category and while submitting it popup closes and it automatically appends that value in drop down using ajax can any one send that code using ajax,I used javascript but the page is refreshing can it be possible...
1
1358
by: JackInDaBox | last post by:
Hello, I am new to this and have run into a small problem. I am using the Ajax toolkit with VS 2005 to fill some drop downs through a web service and it works great. All of the cascading drop downs work correctly. The only problem I have is I need to copy the drop downs value from each cascading drop down into a hidden drop down. I have struggled with this for a few days now so if anyone could offer me some advice I would really appreciate...
11
4643
by: tokcy | last post by:
Hi everyone, I am new in php and ajax, i am facing the prob while i click on element of first drop down then in second dropdown all element showl come from database. I mean i have three dropdown 1. category which comes from database 2. brand which comes from databse according to content of first dropdown . and 3. price which is static. when i am doing these things without ajax on every onChange() thw whole page is refreshing that i do not...
0
10325
Oralloy
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...
0
10147
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 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...
0
9950
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...
1
7499
isladogs
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...
0
6739
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
5381
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
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...

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.