admin管理员组

文章数量:1415664

A vendor I work with recently produced a page for my pany. It generally runs well, but gets pleted mangled when viewed by IE (any version).

Here is are the error details:

User Agent: Mozilla/4.0 (patible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) Timestamp: Tue, 6 Nov 2012 18:06:55 UTC

Message: Expected identifier, string or number
Line: 82
Char: 1
Code: 0

Here is the section of code I believe it is referring to:

<script type="text/javascript">  
jwplayer("container1").setup({
'flashplayer': "player.swf",
'autostart':"true",
'skin': "skin.zip",
'controlbar': "bottom",
'screencolor': "FFFFFF",
'image': "images/gradient green background.jpg",
'file': "new_tour_video/General_Information_Final2.m4v",
'height': "546",
'width': "999",
 <-----------------*This would be line 82, Character 1*
});

</script>

Can anyone point me in the right direction here?

I know a bit about this (but not much), but it seems like this might be indicating a problem with the script. The only problem is, the player itself works fine. It's the rest of the page that gets disorganized...but why would it tell me the error is on line 82? I checked the associated CSS file, and everything looks normal there (line 82 is a really mundane, properly formatted tag).

In short, I'm stumped. I'm sure someone with a really solid knowledge of Java would be able to figure this out, but my knowledge of proper Java syntax is pretty weak.

A vendor I work with recently produced a page for my pany. It generally runs well, but gets pleted mangled when viewed by IE (any version).

Here is are the error details:

User Agent: Mozilla/4.0 (patible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) Timestamp: Tue, 6 Nov 2012 18:06:55 UTC

Message: Expected identifier, string or number
Line: 82
Char: 1
Code: 0

Here is the section of code I believe it is referring to:

<script type="text/javascript">  
jwplayer("container1").setup({
'flashplayer': "player.swf",
'autostart':"true",
'skin': "skin.zip",
'controlbar': "bottom",
'screencolor': "FFFFFF",
'image': "images/gradient green background.jpg",
'file': "new_tour_video/General_Information_Final2.m4v",
'height': "546",
'width': "999",
 <-----------------*This would be line 82, Character 1*
});

</script>

Can anyone point me in the right direction here?

I know a bit about this (but not much), but it seems like this might be indicating a problem with the script. The only problem is, the player itself works fine. It's the rest of the page that gets disorganized...but why would it tell me the error is on line 82? I checked the associated CSS file, and everything looks normal there (line 82 is a really mundane, properly formatted tag).

In short, I'm stumped. I'm sure someone with a really solid knowledge of Java would be able to figure this out, but my knowledge of proper Java syntax is pretty weak.

Share Improve this question edited Nov 6, 2012 at 21:25 Jean-François Corbett 38.6k30 gold badges143 silver badges191 bronze badges asked Nov 6, 2012 at 21:21 user1804300user1804300 211 silver badge2 bronze badges 1
  • 1 Java is to Javascript as car is to carpet. – SLaks Commented Nov 6, 2012 at 21:58
Add a ment  | 

2 Answers 2

Reset to default 5

Remove the last ma from the object declaration to fix the error

jwplayer("container1").setup({
'flashplayer': "player.swf",
'autostart':"true",
'skin': "skin.zip",
'controlbar': "bottom",
'screencolor': "FFFFFF",
'image': "images/gradient green background.jpg",
'file': "new_tour_video/General_Information_Final2.m4v",
'height': "546",
'width': "999"
});

It looks like your JSON object has an extra ma. Try removing the final ma in the object:

<script type="text/javascript">  
jwplayer("container1").setup({
'flashplayer': "player.swf",
'autostart':"true",
'skin': "skin.zip",
'controlbar': "bottom",
'screencolor': "FFFFFF",
'image': "images/gradient green background.jpg",
'file': "new_tour_video/General_Information_Final2.m4v",
'height': "546",
'width': "999"
});
</script>

本文标签: