473,466 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

dynamic data population using html dropdownlist control

1 New Member
hai everyone

i am new to PHP. i have problem in dynamically populate data over two dropdownlistbox.

first dropdownlistbox contain areacode and second dropdownlistbox shows corresponding data for the first dropdownlistbox without submitting the form.

help me.
Sep 8 '10 #1
1 1905
HaLo2FrEeEk
404 Contributor
You need to look into AJAX. AJAX is a pretty neat technology that allows you to submit a PHP form to the server using Javascript, the result of which is returned to the Javascript and printed to the page, without needing to reload. An example is here:

http://infectionist.com/misc/capture...st/capture.php

Put in an Xbox Live gamertag (if you don't have one, use HaLo2FrEeEk, my gamertag,) and click the button. Without reloading the page, the data is submitted to the server, processed, and the result (a list of videos associated with that gamertag) is returned to the page.

JQuery has a great library that allows very easy implementation of AJAX, check it out here:

http://jquery.com
Sep 8 '10 #2

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

Similar topics

4
by: theo | last post by:
Program flow...load file,then extract the xml text tags from the file,then the number of Xml tags retrieved from the file determines the number of dropdownlist controls instanciated in the...
2
by: Tom Jorgenson | last post by:
I have a DropDownList whose items are populated simply via the Items property of the control. The field represents the gender of a client and the items are simply 'Male', 'Female', and 'Choose...
2
by: Veeresh | last post by:
I am using HTML literal control to display data in a table format. How to set the font specification at the page level so that by changing at one place will reflect for the entire page? -- Veer
0
by: WJ | last post by:
I am using html/Table control a lot to organize my controls on aspx form. Most of the time it works fine, then all of a sudden, a cell within a table refuses to be resized (left/right) and or a row...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
0
by: ME | last post by:
I can't seem to delete records using an objectdatasource. The object is a Typed Collection built by Visual Studio that access a SQL Database. When I try to delete using the ObjectDataSource it...
2
by: glenn | last post by:
Hi folks, I am trying to determine which item in a DropDownList Web control has been selected. I have posted an OnSelectedIndexChanged subroutine in my code with a reference to the subroutine...
4
by: J055 | last post by:
Hi I thought I was trying to do something very simple but I'm have a lot of trouble trying to do the following. <asp:FormView ID="fvGroups" runat="server" DataKeyNames="GroupID"...
10
by: Paul | last post by:
Hi I am using the HtmlInputFile control to upload a file from a client to a server. I have a browse to find the file on the server but need to create the path dynamically as to were it will go...
2
by: Aswanth | last post by:
Hi.. I'm using Asp.Net with C#.... I'm having One Dropdownlist control(Users_Details_DDL) in Default.aspx Page... i'm having one Stored Procedure (Get_User_Email) which will display the Data...
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
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...
0
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,...
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...
1
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...
0
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...
0
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...
0
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...
0
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...

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.