[wp-trac] Re: [WordPress Trac] #4325: Admin page for sidebar widgets report problem in Internet Explorer

WordPress Trac wp-trac at lists.automattic.com
Thu May 24 13:50:03 GMT 2007


#4325: Admin page for sidebar widgets report problem in Internet Explorer
------------------------------------+---------------------------------------
 Reporter:  Bernard_J_L             |        Owner:  anonymous
     Type:  defect                  |       Status:  new      
 Priority:  normal                  |    Milestone:  2.2.1    
Component:  Administration          |      Version:  2.2      
 Severity:  normal                  |   Resolution:           
 Keywords:  widgets administration  |  
------------------------------------+---------------------------------------
Comment (by Otto42):

 Replying to [comment:4 Bernard_J_L]:
 > We don't understand the use of the variable "n". It seems that "n" would
 cycle through the elements of "Draggables.drags" and not be an index into
 the elements.

 No. Javascript is weird.

 Try this code in a page, and you'll see what I mean:
 {{{
 <html>
 <body>
 <script type="text/javascript">
 var x
 var mycars = new Array()
 mycars[0] = "Saab"
 mycars[1] = "Volvo"
 mycars[2] = "BMW"
 for (x in mycars) {
 document.write(mycars[x] + "<br />")
 }
 </script>
 </body>
 </html>
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4325#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list