waseem02 / jquery-asmselect

Automatically exported from code.google.com/p/jquery-asmselect
0 stars 0 forks source link

Multiple asmSelects on the same page doesn't work. #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create two asmSelects on the same page with the same value list.
2. Attempt to add the same value from both selects to the selected fields.

What is the expected output? What do you see instead?
Expect each instance to be handled uniquely, I'm seeing that they instead
interact with each other.

Please provide any additional information below.

I suspect it's just the index value... as I can't see it being incremented
or set anywhere.

Original issue reported on code.google.com by david.ki...@gmail.com on 10 Oct 2008 at 2:52

GoogleCodeExporter commented 8 years ago
right
Please fix.

Original comment by epsonLa...@gmail.com on 4 Nov 2008 at 2:14

GoogleCodeExporter commented 8 years ago
Please tell me who fix !!! 

Original comment by rasmanga...@gmail.com on 7 Nov 2008 at 4:18

GoogleCodeExporter commented 8 years ago
I have the same problem here when using two asmSelects on a same page...
When I try to select items from the 2nd one, it load values from the 1st on the 
list...any clues on a solution for this?

Original comment by lipebian...@gmail.com on 17 Nov 2008 at 11:53

GoogleCodeExporter commented 8 years ago
I had the same problem and i've tried to resolve by changing the js,
the problem seems to come from the var index which doesn't change 
between the different asmSelect on the page.

In order to resolve, i add a new option named index, and when you call
the asmSelect you have to add this new option in order to make uniq
your asmSelect.

In my case it seems to work but i'm relatively new in Js and i discovered this
project a week ago so i don't know exactly the impact of my modification.

I atach my ".js" with my modification for maybe help.

(Sorry if my english is not good)

Original comment by Hio...@gmail.com on 19 Nov 2008 at 11:01

Attachments:

GoogleCodeExporter commented 8 years ago
It worked!!
Excellent!
Thank you very much, my friend!
Please Ryan, if possible, add this correction/feature to next release!

Original comment by lipebian...@gmail.com on 19 Nov 2008 at 3:08

GoogleCodeExporter commented 8 years ago
ouai Hiouve, trop de la balle ta modif!!

Original comment by 06739425...@gmail.com on 19 Nov 2008 at 3:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
C ou pour écrire a ton fan club

Original comment by fire2mas...@gmail.com on 19 Nov 2008 at 4:33

GoogleCodeExporter commented 8 years ago
Sorry if i am a dunderhead, but how exactly do i implement this?  

Original comment by Canal...@gmail.com on 20 Nov 2008 at 12:54

GoogleCodeExporter commented 8 years ago
This works for me (note don't set any defaults):

JavaScript:
$("select[multiple].asmselect").asmSelect({ });

HTML:
<select id="rooms" class="asmselect" multiple="multiple" name="rooms[]" 
title="Click
to Select Rooms"></select>

<select id="resources" class="asmselect" multiple="multiple" name="resources[]"
title="Click to Select Resources">

Original comment by Jon.Hal...@gmail.com on 25 Nov 2008 at 1:44

GoogleCodeExporter commented 8 years ago
Sorry I didn't see this issue report before -- I thought this was the same one
already posted, and the issue was resolved a couple months ago: 
http://code.google.com/p/jquery-asmselect/issues/detail?id=4&can=1

The JS file is there with the fix in place. I'd meant to package this into a 
full
release, but hadn't gotten around to yet yet. I'll have a full release (with a 
few
other updates) ready this weekend.

Thanks,
Ryan

Original comment by ryancram...@gmail.com on 29 Nov 2008 at 8:10