array declaration not working in firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crs27
    New Member
    • Jul 2007
    • 40

    array declaration not working in firefox

    Hi,
    I Have the below declaration of an array
    var latitude = []; which is working in IE but the same is not working in Mozilla.
    i changed it to var latitude = new Array() ;
    var latitude = new Array(10).But none is working .
    Weird thing is it is hitting the server many times sort of infinite loop.If i remove the above declaration the page is at least displayed.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    there seem to be some other issue than [], as this usually works in all browsers.

    Comment

    • crs27
      New Member
      • Jul 2007
      • 40

      #3
      thanks for the quick reply,
      i had more then 5 arrays , of which one was named location,
      i renamed this to locationn.It worked.
      Thank You So Much.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        yea, good ole reserved keywords (location = window.location = something completely different)

        Comment

        Working...