This problem has been resolved. I added the following code:

<script type="text/javascript">
   $("#slider_0").slider("moveTo", 50);
</script>

I had seen this as a workaround in other instances where startValue
wasn't working properly, but it wasn't working in IE where I had
inserted it initially. It had to be pulled out to its own block of
<script></script> and not in the <script> block where the slider
itself was defined. Again, this may be obvious for some reason that I
don't understand, but hopefully my ignorance will help someone else
out at some point!

The code (more or less) now resembles this (the actual slider html is
unchanged):

[...additional html (including table)...]
<script type="text/javascript">
   $("#slider_0").slider({
      handle: "#slider_handle_0",
      minValue: 0,
      maxValue: 10,
      startValue: 50
      });
</script>
[...additional html...]

<script type="text/javascript">
   $("#slider_0").slider("moveTo", 50);
</script>

On Oct 7, 12:25 pm, Tim <[EMAIL PROTECTED]> wrote:
> Hi -
>
> I have several sliders defined inside a table (in this case the slider
> is used to manipulate tabular data, so this is a legitimate and
> necessary use of table-as-structure). When viewed in IE, the
> startValue is not honored (all sliders default to 0).
>
> The sliders display correctly in Firefox 3.0.3 and Chrome 0.2.149.30.
>
> I haven't seen anything else about this, so I was wondering if anyone
> else had or if anyone can think of a workaround?
>
> The problem is readily reproducible; contrast this:
>
> <div id="slider_name_0">
>    <div id="slider_0" class="ui_slider" style="margin:10px;">
>       <div id="slider_handle_0" class="ui_slider_handle"></div>
>    </div>
> </div>
>
> <script type="text/javascript">
>    $("#slider_0").slider({
>    handle: "#slider_handle_0",
>    minValue: 0,
>    maxValue: 10,
>    startValue: 50
>    });
> </script>
>
> with the same code wrapped in a <table></table>. The former sets the
> initial value to 50, while the latter defaults to 0.
>
> - Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to