Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 09-13-2006, 03:21 PM ajax
Average Talker

Posts: 28
Name: suman
Trades: 0
how can i perse and populate multiple data in combobox by ajax
allsuman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-11-2007, 12:32 AM Re: ajax
Novice Talker

Posts: 5
Name: Moses
Trades: 0

responseText should be in the format "( apple||orange||Mango|| )"


returnElements=http_request.responseText.split("|| ")

document.getElementById('form_loan_officer').optio ns[j] = new Option('Select Loan Officer','');
for ( var i=1; i<returnElements.length-1; i=i+2)
{
j++;
valueLabelPair = returnElements[i];
document.getElementById('form_loan_officer').optio ns[j] = new Option(returnElements[i+1], returnElements[i]);
}


better generate a xml file and parse.

mosesdinakaran is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ajax
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18287 seconds with 12 queries