I know IE loses the numbering on ordered
lists when li elements are moved around, and I don’t know if there’s
an easy workaround (I just manually set the values on the LI elements after
each drop). I imagine this is somehow related. I guess I’m just saying
you may have to do your own hack to make it work (as in store the values in
some other _javascript_ data structure, and reset the radio buttons after each
drop). Yay for the bugginess of IE J
Greg
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Chen
Sent: Monday, June 05, 2006 1:52
PM
To: [email protected]
Subject: [Rails-spinoffs] radio
button in sortable list
I have radio buttons in sortable li. After I select
different options and drag the li, the radion button options reverted to it's
original value. This only happens in IE, any ideas?
Thanks in advance for your help.
below is the code
<script type="text/_javascript_" src=""
></script>
<script type="text/_javascript_"
src="" ></script>
<style>
.preview{
width:200px;
height:20px;
border:1px dashed #999;
margin-top:10px;
padding:0;
}
</style>
<ul id="first">
<li class=preview id='gift'>
<input type=radio name='opt_gift' value='show'
checked>Show
<input type=radio name='opt_gift' value='hide'
>Hide
</li>
<li class=preview id='ecard'>
<input type=radio name='opt_ecard' value='show'
>Show
<input type=radio name='opt_ecard' value='hide'
checked>Hide
</li>
<li class=preview id='pcard'>
<input type=radio name='opt_pcard' value='show'
checked>Show
<input type=radio name='opt_pcard' value='hide'
>Hide
</li>
</ul>
<script>
Sortable.create("first",{dropOnEmpty:true,containment:["first"],constraint:false});
</script>
|
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs