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-14-2006, 01:58 AM ajax combobox
Average Talker

Posts: 28
Name: suman
Trades: 0
how can i populate mutiple value in combobox through ajax?
allsuman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-17-2006, 04:59 AM Re: ajax combobox
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
Your question is quite vague, and to my understanding, I don't know how much you know about AJAX which makes it even more difficult.

If you knew the basics for AJAX, a request is made, a response is received, in that response is possibly the data to populate a multiple value combo-box and from there you would just create the DOM for it and add it into the site.

You might not even need AJAX for it, if you stored the values you wanted to change within javascript, then you could easily just call upon them, but if you do require AJAX to do the request, possibly because it's got to grab it from a database, then that might be why you'd need it.

I only outlined the basics, but I do think you're wanting more.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 09-22-2006, 02:35 AM Re: ajax combobox
jazee's Avatar
Super Talker

Posts: 121
Location: Westminster, CO / Denver
Trades: 0
What I think you are looking for is something like

HTML Code:
<form name="testform">
<select name="testselect">
	<option value="first">first option</option>
	<option value="second">second option</option>
	<option value="third">third option</option>
	<option>your browser can't handle this script</option>
</select>
</form>

<script>
document.forms['testform'].testselect.options[i] = new Option('new text','new value');
</script>
There is a whole turotial on this at http://www.quirksmode.org/js/options.html
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jazee is offline
Reply With Quote
View Public Profile Visit jazee's homepage!
 
Reply     « Reply to ajax combobox
 

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.14541 seconds with 12 queries