Change id of element in DOM, IE7...
- From: Stephen Durkin <stephen.durkin@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 10:26:11 -0700 (PDT)
I have some javascript to rearrange a list of elements...
1) Each element (div) is initially given a unique id, the same id of
the database record the element represents.
2) User "moves" element from slot 3 to slot 6, for example (result: 3-
6, 6->5, 5->4, 4->3).3) I copy the innerHTML of each div (3-6) into an array.
4) I set the innerHTML of each div (3-6) to now contain the
appropriate content from the array.
5) I update the id's of each div (3-6)...
Seems simple enough for me, and seems to work flawlessly in Firefox...
IE7, however, seems to forget the effects of step 5, so on the second
"move," step 4 puts the innerHTML's in the wrong slots...grrrrrr...any
ideas?
.
- Follow-Ups:
- Re: Change id of element in DOM, IE7...
- From: Thomas 'PointedEars' Lahn
- Re: Change id of element in DOM, IE7...
- Prev by Date: Re: Using scriptaculous, how to trigger mouseover effect ONLY if moused over for a period of time
- Next by Date: Re: Same Origin Policy -- clarifications?
- Previous by thread: Which DOM property for determining vertical size?
- Next by thread: Re: Change id of element in DOM, IE7...
- Index(es):
Relevant Pages
|