Reply
ajax combobox
Old 09-14-2006, 12:58 AM ajax combobox
Average Talker

Posts: 28
Name: suman
how can i populate mutiple value in combobox through ajax?
allsuman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-17-2006, 03:59 AM Re: ajax combobox
Ultra Talker

Posts: 253
Location: Auckland, New Zealand
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, 01:35 AM Re: ajax combobox
jazee's Avatar
Super Talker

Posts: 122
Location: Westminster, CO / Denver
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
jazee is offline
Reply With Quote
View Public Profile Visit jazee's homepage!
 
Reply     « Reply to ajax combobox
 

Thread Tools

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

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