IE6 doesn't load correctly

M

M. Fisher

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
 
W

Walton

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
 
M

M. Fisher

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

M. Fisher

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

M. Fisher

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:

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top