Title: spinner not working inside a table with IE 6

I’m sorry if I sent this message more than once.  I was having with my email and wasn’t sure if I sent it because I never received.  I just saw a response to this so I know I at least sent twice.  Very sorry for the spam.  Thanks very much for the help.

 

Joe

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Hudson
Sent: Saturday, February 18, 2006 5:25 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] spinner not working inside a table with IE 6

 

Hello, I’m trying to use the slider inside a table and am having problems.  I’m wondering if anybody can help or, if it just isn’t possible for some reason.  The following 2 samples contain same code (1 inside <div></div> and 1 inside <table><tr><td></td></tr></table>).  The div one works fine but the table one doesn’t work (using IE 6… Firefox is fine).  I don’t actually get a script error… the slider just doesn’t move (and doesn’t initialize with the “.34” value).  I’d really appreciate some help.  Thanks.

<table><tr><td>

        <input type="hidden" id="slider_id" name="slider" value="34"/>

        <div id="track_8499" style="width:100px;height:16px;background:url(/test/images/slider_bg.gif);"><img id="handle_8499" style="cursor: move" src="">

        <script language="_javascript_">

                new Control.Slider('handle_8499','track_8499',{

                        onChange:function(v){v=v*100; $('slider_id').value=v.toFixed(2);},

                        sliderValue:"0.34"});

        </script>

</td></tr></table>

<div>

        <input type="hidden" id="slider_id" name="slider" value="34"/>

        <div id="track_8499" style="width:100px;height:16px;background:url(/test/images/slider_bg.gif);"><img id="handle_8499" style="cursor: move" src="">

        <script language="_javascript_">

                new Control.Slider('handle_8499','track_8499',{

                        onChange:function(v){v=v*100; $('slider_id').value=v.toFixed(2);},

                        sliderValue:"0.34"});

        </script>

</div>

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to