473,395 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1253
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wiseguy | last post by:
I have an enum defined within a namespace. When I reference the enum using its qualified name graphics::db_status(VALUE) it does not work. If I say "using namespace graphics;" then I can resolve...
7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
7
by: Gordon Smith | last post by:
I have four (4) ASP.NET Web applications/Web sites on a IIS/6 - Windows Server 2003 production server. 3 of them work fine. I just installed the 4th one and it's Application_Start event is not...
13
by: Thom Little | last post by:
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0 The application compiles and executes correctly on the development machine. I then publish it to an empty directory on...
1
by: mathewda | last post by:
Hey, I'm having a problem that I consider kinda weird that is alluding me at the moment. I've wrote some code that will set up an XMLHttpRequest, it then makes a call to open and send and sets the...
0
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
7
by: John Kotuby | last post by:
Hi all, I have created an ASPX page in VS 2008 that appears inside of an IFRAME inside a standard HTML page. Because it loads from an external site and is database driven, the first load takes a...
0
by: chromis | last post by:
Hi, I am trying to get my flash file to load xml data correctly, when i load loader.swf in the browser directly my xml is loaded and the movie functions correctly. However when i embed and load...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.