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

creating a Ajax dynamic list

Hello,
I am new in Ajax. I want to create Ajax dynamic list with ASP and XML. can anybody will help me regarding This.

Thanks in advance..
Mar 27 '08 #1
6 2572
aswath
18
Hello,
I am new in Ajax. I want to create Ajax dynamic list with ASP and XML. can anybody will help me regarding This.

Thanks in advance..

r u finding problem in sending a request itself or u can get the response however facing problem in creating dynamic list box options........
regards
Mar 27 '08 #2
r035198x
13,262 8TB
Hello,
I am new in Ajax. I want to create Ajax dynamic list with ASP and XML. can anybody will help me regarding This.

Thanks in advance..
What have you done so far?
Mar 27 '08 #3
r u finding problem in sending a request itself or u can get the response however facing problem in creating dynamic list box options........
regards
My problem is how to disply individually records in the div element
Mar 27 '08 #4
aswath
18
My problem is how to disply individually records in the div element
hi dasrasmikant,
div elements??? do u want to create <option> tags dynamically?SO that u can have u resultant data in another combo box... if yes i can send u the code for that....
regards.......
Mar 28 '08 #5
hi dasrasmikant,
div elements??? do u want to create <option> tags dynamically?SO that u can have u resultant data in another combo box... if yes i can send u the code for that....
regards.......
Thanks aswath
Actually I want to show the data in a div like in http://www.answers.com/
Mar 28 '08 #6
aswath
18
Thanks aswath
Actually I want to show the data in a div like in http://www.answers.com/

ur url is aint woriking.
the below code can be used to create dynamic listbox options..
this code ll be useful if i have understood ur question properly.......
Expand|Select|Wrap|Line Numbers
  1. xmlHttp.onreadystatechange=function()
  2.                                             {
  3.                                                 if(xmlHttp.readyState==4){
  4.                                                     status_name = xmlHttp.responseText;
  5.  
  6.  
  7.                                                     if ((status_name=="") || (status_name==null))
  8.                                                         {
  9.                                                             removeOptionLast2();
  10.  
  11.                                                         }
  12.                                                         else
  13.                                                             {
  14.                                                                 removeOptionLast2();
  15.  
  16.                                                                 var col_array1=status_name.split("/");
  17.                                                                 //                        alert(col_array[0]);
  18.                                                                 var part_num1=0;
  19.  
  20.                                                                 while (part_num1 < col_array1.length)
  21.                                                                     {
  22.  
  23.                                                                         var a=document.createElement('option');
  24.  
  25.                                                                         a.text=col_array1[part_num1];
  26.                                                                         a.value=col_array1[part_num1];
  27.  
  28.                                                                         var b=document.getElementById("modify_status_name");
  29.                                                                         try
  30.                                                                         {
  31.                                                                             b.add(a,null); // standards compliant
  32.                                                                         }
  33.                                                                         catch(ex)
  34.                                                                         {
  35.                                                                             b.add(a); // IE only
  36.                                                                         }
  37.  
  38.  
  39.  
  40.                                                                         part_num1+=1;
  41.                                                                     }
  42.  
  43.                                                                 }
  44.  
  45.  
  46.                                                             }
  47.                                                         }
regards
Mar 28 '08 #7

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

Similar topics

0
by: Ex-Em-El | last post by:
I have a problem in creating a dynamic table in the same xml : 1.xml: <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="2.xsl"?> <aaa...
1
by: Rob Venable | last post by:
Hi, Does anyone know the syntax for creating a dynamic radio button from a Javascript function. I think it's something like: var btn = new radio( some arguments ); but I don't know the...
11
by: tara99 | last post by:
I was wondering if can some help me with creating a dynamic list box. I have a combobox with the list of items (item1, item2, item3). item1 has 5 sub items item2 has 10 sub items item3 has 2...
2
by: Milsnips | last post by:
hi there, i'm creating a dynamic menu system for a CMS website application. What i am currently doing is the following: in a function called LoadMenu(), i loop through the required db records...
1
by: empiresolutions | last post by:
Hello fellow code junkies, I am using the "Ajax dynamic list" http://dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-list and i think its the best out there. I have found a compatibility...
1
by: Allan Ebdrup | last post by:
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find...
2
by: pralhadkulkarni12 | last post by:
Hi, I am a new user of AJAX. I need to generate suggest list for every input given by user as we get in Google. To generate I need AJAX code which will read data following XML file. e.g....
1
by: skyson2ye | last post by:
Hi, guys: I have written a piece of code which utilizes Javascript in PHP to create a three level dynamic list box(Country, States/Province, Market). However, I have encountered a strange problem,...
4
by: raknin | last post by:
Hi, I am creating dynamic list in the server through php and insert it using ajax. for ajax I using the following statement: ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...

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.