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

handle large data by ajax

150 100+
i need to allow the user to select a top level category from one select box and to automatically populate the sub-category.. etc how can i handle big data like eBay in select tags how can i do that with easy way?
Apr 21 '08 #1
6 2762
smartic
150 100+
i need to allow the user to select a top level category from one select box and to automatically populate the sub-category.. etc how can i handle big data like eBay in select tags how can i do that with easy way?
example image:

Apr 21 '08 #2
acoder
16,027 Expert Mod 8TB
Threads merged. Please do not double-post.

Moderator.
Apr 21 '08 #3
Amzul
130 100+
you can try spry framework of macromedia
for builedin funcitons if you working with dreamweaver
Apr 21 '08 #4
acoder
16,027 Expert Mod 8TB
i need to allow the user to select a top level category from one select box and to automatically populate the sub-category.. etc how can i handle big data like eBay in select tags how can i do that with easy way?
Since you want achieve this via Ajax and you haven't specified any framework, and assuming you know how to use Ajax, all you need is to pass the top level category as a parameter to a server-side script which runs a query and gets all the sub-categories. These can be output as XML or using a suitable delimiter. On the client-side on receiving the response, parse it to get all the categories. You can use the add() method, or the options[] array to insert a new option.

Make an attempt and if you get stuck, post your code.
Apr 22 '08 #5
i have sone something similar. if you are just html and javascript on the client side you need to have the ajax return either the outterHTML of the select you are working with (innerHTML if FireFox) you cant return objects to add to the select because IE cant handle that much manipulation.
Apr 22 '08 #6
acoder
16,027 Expert Mod 8TB
if you are just html and javascript on the client side you need to have the ajax return either the outterHTML of the select you are working with (innerHTML if FireFox)
...or innerHTML for all browsers
you cant return objects to add to the select because IE cant handle that much manipulation.
Strings should be OK, which can be added as option objects/elements.
Apr 23 '08 #7

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

Similar topics

7
by: matvdl | last post by:
I have migrated my asp application to asp.net some time ago - but I am still having some difficulties in understanding the best way to mange some tasks. I currently have a page that loads a aspx...
5
by: Jonah Bishop | last post by:
I'm developing a photo album web application for use on a web site, and I'm running into a problem with lengthy operations. My application allows the user to import a number of images at once into...
2
by: =?Utf-8?B?UHJpeWE=?= | last post by:
Hi, I'm faced with a classic problem of how to update a large number of records from a web page. I;m trying to build an interface that will display recordset in the order of 3000 rows and allow...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
2
by: verci | last post by:
Hi guys, I'm running VS2005, AP.net 2.0, Windows XP SP2 Ok this maybe a dumb question but here it goes, as a newbie I've just finished my first AJAX enable page, everything works great but,...
20
by: Lit | last post by:
Hello, I need to create an Internet based, asp.net webform where a user can select multiple cities in a state. as you know the number of cities in a state can be very large. What is the...
2
by: Jeremy | last post by:
I've got a very large listbox that gets populated using ajax. The listbox and a button are in a panel inside an update panel. The button click of the button sets the panel visible property to...
1
by: seth | last post by:
Hi: I'm trying to read JSON strings sent from the browser. Here is the scenario: 1. Using YUI tookit 2. sending JSON string from YUI toolkit - using the provided asyncRequest method. **I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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.