As a last resort, you might be able to fake an <ol>. Let's say, for
example, that you use <div>s instead of <li>s, and they'll be wrapped
in <div id="list"></div>. You could add this after the new <div> is
appended:
$('#list > div').each(function(index) {
$(this).prepend(index+1 + '. ');
});
totally untested, but might get you closer.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 6, 2007, at 4:46 PM, Briz wrote:
Kinda makes you wonder what those microsoft engineers smoke, eh?
I had a complex css scenario as well, but with some significant
reworking was able to make it all work. I learned some new curse
words in the process, but it eventually worked.
If you're stuck with hasLayout and you absolutely must use an
ordered list, the only solution I can think of is Kaus and Jonathan's.
Good luck!
On 2/6/07, Joel Noble <[EMAIL PROTECTED]> wrote:
On Tue, Feb 06, 2007 at 12:33:46PM -0800, Briz wrote:
> Hi there. I recently ran into this exact same problem and tore
out what
> remained of my hair figuring it out.
>
> The problem is not with jQuery or JavaScript, but with IE
allowing CSS to
> affect how it handles the numbering of ordered list items.
>
> Here's a page describing the problem:
> http://www.satzansatz.de/cssd/onhavinglayout.html#list
[...]
Yikes! Thanks for pointing this out!
Since I'm making this OL sortable using Interface, and it in turn
puts styles on the OL to make it drag/droppable, adding fx, etc.
So I'm probably doomed. :|
OK, then, unnumbered lists here I come... Unless someone else
has a brainstorm!
(FYI, I did make a scaled-down example with no styles on the OL,
and the code I provided earlier worked fine on IE adding items
that were numbered correctly. But then adding styles back
to the OL had either the effect of the numbers not appearing
or the numbers always being #1.)
I thank you. My hair thanks you.
Joel Noble
[EMAIL PROTECTED]
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
_____________________________________
Brad Brizendine
CTO, Glyphix http://www.glyphix.com/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/