469,287 Members | 2,493 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

IE6 doesn't load correctly

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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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

Mar 5 '07 #1
4 1158
On Mar 5, 12:54 pm, "M. Fisher" <mcfishe...@gmail.comwrote:
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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","rate Improved"]
]
},
'IoZone_Scale_Lab130' : {
'SDET' : [
["0","400","7","24431","25179","24919","1.09","base "],
["1","400","7","27729","28031","27877","0.34","11.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","rate Improved"]
]
}
}

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

http://www.json.org/js.html
Mar 5 '07 #2
On Mar 5, 1:33 pm, "Walton" <jrhol...@gmail.comwrote:
On Mar 5, 12:54 pm, "M. Fisher" <mcfishe...@gmail.comwrote:
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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","rate Improved"]
]},

'IoZone_Scale_Lab130' : {
'SDET' : [
["0","400","7","24431","25179","24919","1.09","base "],
["1","400","7","27729","28031","27877","0.34","11.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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.

Mar 5 '07 #3
On Mar 5, 1:33 pm, "Walton" <jrhol...@gmail.comwrote:
On Mar 5, 12:54 pm, "M. Fisher" <mcfishe...@gmail.comwrote:
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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","rate Improved"]
]},

'IoZone_Scale_Lab130' : {
'SDET' : [
["0","400","7","24431","25179","24919","1.09","base "],
["1","400","7","27729","28031","27877","0.34","11.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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.

Mar 6 '07 #4
On Mar 6, 9:09 am, "M. Fisher" <mcfishe...@gmail.comwrote:
On Mar 5, 1:33 pm, "Walton" <jrhol...@gmail.comwrote:
On Mar 5, 12:54 pm, "M. Fisher" <mcfishe...@gmail.comwrote:
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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","rate Improved"]
]},
'IoZone_Scale_Lab130' : {
'SDET' : [
["0","400","7","24431","25179","24919","1.09","base "],
["1","400","7","27729","28031","27877","0.34","11.8 7","rate
Improved"],
["0","450","7","24691","25194","24966","0.75","base "],
["1","450","7","27598","28090","27860","0.60","11.5 9","rate
Improved"],
["0","500","7","24725","25171","24967","0.74","base "],
["1","500","7","27556","27941","27795","0.52","11.3 2","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","bas e"]
],
'mixed workload' : [
["0","Multiple Files","t2","Children
see","7","1508810","1560368","1531484","1.19","bas e"]
]
}
}

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?

Mar 6 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Wiseguy | last post: by
7 posts views Thread by NeverLift | last post: by
149 posts views Thread by Christopher Benson-Manica | last post: by
7 posts views Thread by Gordon Smith | last post: by
13 posts views Thread by Thom Little | last post: by
2 posts views Thread by John Kotuby | last post: by
7 posts views Thread by John Kotuby | last post: by
reply views Thread by chromis | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.