Inserting and Removing UL -- Having Trouble

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Inserting and Removing UL -- Having Trouble

Post by volomike »

I put together this very short sample of code here:

http://volomike.com/downloads/sample1.tar.gz

(BTW, that's not how I normally write software. The client just wanted something in the fewest amount of files as a kind of one-off thing.)

The code works on Firefox, Chrome, and Safari -- I can expand nodes of UL/LIs and then remove them as I click back up the tree. But on IE and Opera, you can see the bug -- it doesn't seem to like the jQuery very well.

On IE, it expands okay with no issue. But removing nodes is another thing -- it seems to remove like the child of the child.

On Opera, expanding causes the left margin to move. And then removing nodes has the same problem as IE.

What could I be doing wrong?
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: Inserting and Removing UL -- Having Trouble

Post by daedalus__ »

im sure that the margin 'moving' is a styling issue. check your css.

im still trying to figure out what my be wrong with the javascript. i need coffee and i dont want to boot out of windows yet so ill get back to you
Post Reply