Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16339 > unrolled thread
| Started by | Pervez Mulla <mullapervez@gmail.com> |
|---|---|
| First post | 2012-10-03 04:59 -0700 |
| Last post | 2012-10-04 07:36 -0700 |
| Articles | 8 — 5 participants |
Back to article view | Back to comp.lang.javascript
How to pass all value of select list to backend Pervez Mulla <mullapervez@gmail.com> - 2012-10-03 04:59 -0700
Re: How to pass all value of select list to backend dann90038@gmail.com - 2012-10-03 11:56 -0700
Re: How to pass all value of select list to backend Pervez Mulla <mullapervez@gmail.com> - 2012-10-03 22:57 -0700
Re: How to pass all value of select list to backend "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-04 08:03 +0000
Re: How to pass all value of select list to backend Danny <dann90038@gmail.com> - 2012-10-04 11:45 -0700
Re: How to pass all value of select list to backend "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-04 19:57 +0000
Re: How to pass all value of select list to backend dann90038@gmail.com - 2012-10-04 13:49 -0700
Re: How to pass all value of select list to backend Bart Van der Donck <bart@nijlen.com> - 2012-10-04 07:36 -0700
| From | Pervez Mulla <mullapervez@gmail.com> |
|---|---|
| Date | 2012-10-03 04:59 -0700 |
| Subject | How to pass all value of select list to backend |
| Message-ID | <ae2a572e-2f02-4bcd-8d4b-e68d3512e42d@googlegroups.com> |
In my code I want to pass all the items(values)present in select list to backend, Am trying to do that but am not getting exact result . Now am able to pass only one item(value) to back-end, Instead of that I want to pass all the value whichever present in select list. Below is my code http://stackoverflow.com/q/12706942/1468281 Thank you Pervez
[toc] | [next] | [standalone]
| From | dann90038@gmail.com |
|---|---|
| Date | 2012-10-03 11:56 -0700 |
| Message-ID | <ae4026bc-4b74-491d-abab-9fa81ea97785@googlegroups.com> |
| In reply to | #16339 |
Not sure anyone understood your plight, as your wording is rather elusive.
What are you specifically trying to do again? What's the "backend" you're referring to? I saw the code it has nothing resembling items(values) on the markup or the js. If you meant to ask how to get the selected options of a 'multiple' Select element, check my previous reply to you, you iterate for all .selected ones.
Danny
[toc] | [prev] | [next] | [standalone]
| From | Pervez Mulla <mullapervez@gmail.com> |
|---|---|
| Date | 2012-10-03 22:57 -0700 |
| Message-ID | <05c42c79-bc3c-446a-8979-910601f291ae@googlegroups.com> |
| In reply to | #16353 |
On Thursday, October 4, 2012 12:26:03 AM UTC+5:30, (unknown) wrote: > Not sure anyone understood your plight, as your wording is rather elusive. > > What are you specifically trying to do again? What's the "backend" you're referring to? I saw the code it has nothing resembling items(values) on the markup or the js. If you meant to ask how to get the selected options of a 'multiple' Select element, check my previous reply to you, you iterate for all .selected ones. > > > > Danny Hey Danny, Actually I want to submit all the items of select list. Now am able to submit only one value whichever selected in select list, I want to submit all the item(value) whichever present in the that list box currently , whether the user is selected or not those values. Hope u got his time. Thank you Pervez
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2012-10-04 08:03 +0000 |
| Message-ID | <XnsA0E26661DF017eejj99@194.109.133.133> |
| In reply to | #16383 |
Pervez Mulla wrote on 04 okt 2012 in comp.lang.javascript: > Actually I want to submit all the items of select list. > > Now am able to submit only one value whichever selected in select > list, > > I want to submit all the item(value) whichever present in the that > list box currently , whether the user is selected or not those values. What nonsense, a select list is for submitting the one or multiple selected items. If you want to submit all items select them all. Wether you do that with javascript or not is immaterial, until you specify so. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Danny <dann90038@gmail.com> |
|---|---|
| Date | 2012-10-04 11:45 -0700 |
| Message-ID | <b0c79f6a-c727-44f0-af01-59420e2dd99f@googlegroups.com> |
| In reply to | #16383 |
hmmmm, did you ever bothered reading my reply to your previous issue on Deletion of options? it seems you didn't, as it shows how to get all .selected options. Anyhow, this was my example, check the code-> http://www.webdevout.net/test?01b&raw
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2012-10-04 19:57 +0000 |
| Message-ID | <XnsA0E2DF5DFA2FFeejj99@194.109.133.133> |
| In reply to | #16394 |
Danny wrote on 04 okt 2012 in comp.lang.javascript: > hmmmm, did you ever bothered reading my reply to your previous issue > on Deletion of options? Who is this "you"? Usenet is not email. Always quote for reference on usenet. Anyway: I did not ever bothered! -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | dann90038@gmail.com |
|---|---|
| Date | 2012-10-04 13:49 -0700 |
| Message-ID | <c5ace5ec-179f-4d96-9073-d0bf3cf71bac@googlegroups.com> |
| In reply to | #16396 |
On Thursday, October 4, 2012 12:57:28 PM UTC-7, Evertjan. wrote: > Danny wrote on 04 okt 2012 in comp.lang.javascript: > > > > > hmmmm, did you ever bothered reading my reply to your previous issue > > > on Deletion of options? > > > > Who is this "you"? > > > > Usenet is not email. > > > > Always quote for reference on usenet. > > > > Anyway: I did not ever bothered! > > > > -- > > Evertjan. > > The Netherlands. > > (Please change the x'es to dots in my emailaddress) har har har, alright, my bad, you == Pervez Mulla, :)
[toc] | [prev] | [next] | [standalone]
| From | Bart Van der Donck <bart@nijlen.com> |
|---|---|
| Date | 2012-10-04 07:36 -0700 |
| Message-ID | <7389818f-9055-4659-8199-06658c7538c2@googlegroups.com> |
| In reply to | #16339 |
Pervez Mulla wrote:
> In my code I want to pass all the items(values)present
> in select list to backend, Am trying to do that but am
> not getting exact result.
>
> Now am able to pass only one item(value) to back-end,
> Instead of that I want to pass all the value whichever
> present in select list.
Non-selected values can't be retrieved by the receiving script, because they are simply not passed in the POST/GET request.
One possible workaround is to select everything in the box just before the submit-action:
<form method="get" action="script.php" name="f"
onSubmit="
for (var i=0; i<document.f.fruit.options.length; ++i)
document.f.fruit.options[i].selected = true;
">
<select multiple="multiple" name="fruit" size="3">
<option value="apple">apple</option>
<option value="pear">pear</option>
<option value="orange">orange</option>
</select>
<input type="submit">
</form>
Hope this helps,
--
Bart
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web