IE6 doesn't load correctly

Discussion in 'Javascript' started by M. Fisher, Mar 5, 2007.

  1. M. Fisher

    M. Fisher Guest

    I have a javascript file that is formatted as such:

    var dashboardData = {
    'SDET_Lab130' : {
    'SDET' : [
    ["0","400","7","24431","25179","24919","1.09","base"],
    ["1","400","7","27729","28031","27877","0.34","11.87","rate
    Improved"],
    ["0","450","7","24691","25194","24966","0.75","base"],
    ["1","450","7","27598","28090","27860","0.60","11.59","rate
    Improved"],
    ["0","500","7","24725","25171","24967","0.74","base"],
    ["1","500","7","27556","27941","27795","0.52","11.32","rate
    Improved"],
    ],
    },
    'IoZone_Scale_Lab130' : { <-- **fails here**
    'initial writers' : [

    IE6 (but no other browser I used) fails to load the data. I marked the
    line it points at when I turn on the debugger. I can't figure out why
    other browsers accept this even IE7, but just not IE6?

    Thanks
    Marc
     
    M. Fisher, Mar 5, 2007
    #1
    1. Advertising

  2. M. Fisher

    Walton Guest

    On Mar 5, 12:54 pm, "M. Fisher" <> wrote:
    > I have a javascript file that is formatted as such:
    >
    > var dashboardData = {
    > 'SDET_Lab130' : {
    > 'SDET' : [
    > ["0","400","7","24431","25179","24919","1.09","base"],
    > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > Improved"],
    > ["0","450","7","24691","25194","24966","0.75","base"],
    > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > Improved"],
    > ["0","500","7","24725","25171","24967","0.74","base"],
    > ["1","500","7","27556","27941","27795","0.52","11.32","rate
    > Improved"],
    > ],},


    It's not liking your extra commas
    i got this to work in ie6:

    var dashboardData = {
    'SDET_Lab130' : {
    'initial writers' : [
    ["0","400","7","24431","25179","24919","1.09","base"],
    ["1","400","7","27729","28031","27877","0.34","11.87","rate
    Improved"],
    ["0","450","7","24691","25194","24966","0.75","base"],
    ["1","450","7","27598","28090","27860","0.60","11.59","rate
    Improved"],
    ["0","500","7","24725","25171","24967","0.74","base"],
    ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    ]
    },
    'IoZone_Scale_Lab130' : {
    'SDET' : [
    ["0","400","7","24431","25179","24919","1.09","base"],
    ["1","400","7","27729","28031","27877","0.34","11.87","rate
    Improved"],
    ["0","450","7","24691","25194","24966","0.75","base"],
    ["1","450","7","27598","28090","27860","0.60","11.59","rate
    Improved"],
    ["0","500","7","24725","25171","24967","0.74","base"],
    ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    ]
    }
    }

    for proper syntax for json, give this site a good looking over if you
    haven't:

    http://www.json.org/js.html
     
    Walton, Mar 5, 2007
    #2
    1. Advertising

  3. M. Fisher

    M. Fisher Guest

    On Mar 5, 1:33 pm, "Walton" <> wrote:
    > On Mar 5, 12:54 pm, "M. Fisher" <> wrote:
    >
    > > I have a javascript file that is formatted as such:

    >
    > > var dashboardData = {
    > > 'SDET_Lab130' : {
    > > 'SDET' : [
    > > ["0","400","7","24431","25179","24919","1.09","base"],
    > > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > > Improved"],
    > > ["0","450","7","24691","25194","24966","0.75","base"],
    > > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > > Improved"],
    > > ["0","500","7","24725","25171","24967","0.74","base"],
    > > ["1","500","7","27556","27941","27795","0.52","11.32","rate
    > > Improved"],
    > > ],},

    >
    > It's not liking your extra commas
    > i got this to work in ie6:
    >
    > var dashboardData = {
    > 'SDET_Lab130' : {
    > 'initial writers' : [
    > ["0","400","7","24431","25179","24919","1.09","base"],
    > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > Improved"],
    > ["0","450","7","24691","25194","24966","0.75","base"],
    > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > Improved"],
    > ["0","500","7","24725","25171","24967","0.74","base"],
    > ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    > ]},
    >
    > 'IoZone_Scale_Lab130' : {
    > 'SDET' : [
    > ["0","400","7","24431","25179","24919","1.09","base"],
    > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > Improved"],
    > ["0","450","7","24691","25194","24966","0.75","base"],
    > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > Improved"],
    > ["0","500","7","24725","25171","24967","0.74","base"],
    > ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    > ]
    >
    > }
    > }
    >
    > for proper syntax for json, give this site a good looking over if you
    > haven't:
    >
    > http://www.json.org/js.html



    Excellent, thank you very much.
     
    M. Fisher, Mar 5, 2007
    #3
  4. M. Fisher

    M. Fisher Guest

    On Mar 5, 1:33 pm, "Walton" <> wrote:
    > On Mar 5, 12:54 pm, "M. Fisher" <> wrote:
    >
    > > I have a javascript file that is formatted as such:

    >
    > > var dashboardData = {
    > > 'SDET_Lab130' : {
    > > 'SDET' : [
    > > ["0","400","7","24431","25179","24919","1.09","base"],
    > > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > > Improved"],
    > > ["0","450","7","24691","25194","24966","0.75","base"],
    > > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > > Improved"],
    > > ["0","500","7","24725","25171","24967","0.74","base"],
    > > ["1","500","7","27556","27941","27795","0.52","11.32","rate
    > > Improved"],
    > > ],},

    >
    > It's not liking your extra commas
    > i got this to work in ie6:
    >
    > var dashboardData = {
    > 'SDET_Lab130' : {
    > 'initial writers' : [
    > ["0","400","7","24431","25179","24919","1.09","base"],
    > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > Improved"],
    > ["0","450","7","24691","25194","24966","0.75","base"],
    > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > Improved"],
    > ["0","500","7","24725","25171","24967","0.74","base"],
    > ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    > ]},
    >
    > 'IoZone_Scale_Lab130' : {
    > 'SDET' : [
    > ["0","400","7","24431","25179","24919","1.09","base"],
    > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > Improved"],
    > ["0","450","7","24691","25194","24966","0.75","base"],
    > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > Improved"],
    > ["0","500","7","24725","25171","24967","0.74","base"],
    > ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    > ]
    >
    > }
    > }
    >
    > for proper syntax for json, give this site a good looking over if you
    > haven't:
    >
    > http://www.json.org/js.html


    Follow up question. Cleaned up the extra commas and all, so no more
    complaints from IE6. However what I was doing before in my script was:
    dashboardData[uniqueID][selected]
    which IE6 doesn't like but all the other browsers are ok with. Looking
    over the link it seems I should be using the dot operator instead
    there.
    dashboardData.uniqueID.selected
    doesn't work though since uniqueID and selected are just strings, so
    struggling over how to use that 'eval' which I believe I need in this
    case to get it to work in IE6.
     
    M. Fisher, Mar 6, 2007
    #4
  5. M. Fisher

    M. Fisher Guest

    On Mar 6, 9:09 am, "M. Fisher" <> wrote:
    > On Mar 5, 1:33 pm, "Walton" <> wrote:
    >
    >
    >
    > > On Mar 5, 12:54 pm, "M. Fisher" <> wrote:

    >
    > > > I have a javascript file that is formatted as such:

    >
    > > > var dashboardData = {
    > > > 'SDET_Lab130' : {
    > > > 'SDET' : [
    > > > ["0","400","7","24431","25179","24919","1.09","base"],
    > > > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > > > Improved"],
    > > > ["0","450","7","24691","25194","24966","0.75","base"],
    > > > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > > > Improved"],
    > > > ["0","500","7","24725","25171","24967","0.74","base"],
    > > > ["1","500","7","27556","27941","27795","0.52","11.32","rate
    > > > Improved"],
    > > > ],},

    >
    > > It's not liking your extra commas
    > > i got this to work in ie6:

    >
    > > var dashboardData = {
    > > 'SDET_Lab130' : {
    > > 'initial writers' : [
    > > ["0","400","7","24431","25179","24919","1.09","base"],
    > > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > > Improved"],
    > > ["0","450","7","24691","25194","24966","0.75","base"],
    > > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > > Improved"],
    > > ["0","500","7","24725","25171","24967","0.74","base"],
    > > ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    > > ]},

    >
    > > 'IoZone_Scale_Lab130' : {
    > > 'SDET' : [
    > > ["0","400","7","24431","25179","24919","1.09","base"],
    > > ["1","400","7","27729","28031","27877","0.34","11.87","rate
    > > Improved"],
    > > ["0","450","7","24691","25194","24966","0.75","base"],
    > > ["1","450","7","27598","28090","27860","0.60","11.59","rate
    > > Improved"],
    > > ["0","500","7","24725","25171","24967","0.74","base"],
    > > ["1","500","7","27556","27941","27795","0.52","11.32","rate Improved"]
    > > ]

    >
    > > }
    > > }

    >
    > > for proper syntax for json, give this site a good looking over if you
    > > haven't:

    >
    > >http://www.json.org/js.html

    >
    > Follow up question. Cleaned up the extra commas and all, so no more
    > complaints from IE6. However what I was doing before in my script was:
    > dashboardData[uniqueID][selected]
    > which IE6 doesn't like but all the other browsers are ok with. Looking
    > over the link it seems I should be using the dot operator instead
    > there.
    > dashboardData.uniqueID.selected
    > doesn't work though since uniqueID and selected are just strings, so
    > struggling over how to use that 'eval' which I believe I need in this
    > case to get it to work in IE6.



    An example of what I want to do is as follows:
    var dashboardData = {
    'IoZone_Scale_Lab130' : {
    'initial writers' : [
    ["0","Multiple Files","t2","Children
    see","7","1508810","1560368","1531484","1.19","base"]
    ],
    'mixed workload' : [
    ["0","Multiple Files","t2","Children
    see","7","1508810","1560368","1531484","1.19","base"]
    ]
    }
    }

    So dashboardData.'IoZone_Scale_Lab130'.'mixed workload' is what I am
    trying to access, but I just have the strings to work with, and 'mixed
    workload' is two words, so that might be the problem?
     
    M. Fisher, Mar 6, 2007
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ivor O'Connor
    Replies:
    4
    Views:
    872
    Isofarro
    Nov 25, 2003
  2. Michael Satterwhite

    Picture doesn't load in IE6

    Michael Satterwhite, Mar 6, 2005, in forum: HTML
    Replies:
    4
    Views:
    562
    Oli Filth
    Mar 7, 2005
  3. Homer
    Replies:
    0
    Views:
    347
    Homer
    Sep 13, 2007
  4. Fister
    Replies:
    7
    Views:
    4,176
    Bergamot
    Jan 13, 2008
  5. Paul E. Schoen

    Script works correctly in Firefox, not in IE6

    Paul E. Schoen, Sep 8, 2007, in forum: Javascript
    Replies:
    1
    Views:
    86
    Paul E. Schoen
    Sep 8, 2007
Loading...

Share This Page