intanpalupidn / jquery-oembed

Automatically exported from code.google.com/p/jquery-oembed
0 stars 0 forks source link

IE7 Javascript Error #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Open IE7
2.  Use the following line of code:
$("#container").oembed("http://www.youtube.com/watch?v=nue4pvzuyOo");

What is the expected output? What do you see instead?
Display embedded video in IE7.

jquery-oembed works fine in FF3, Chrome, Safari, but in IE7, it throws the
following error:

"Error: Object doesn't support this property or method."  And it is
referring specifically to the line of code provided above.

Is this something that I'm doing incorrectly?   Thanks.

Original issue reported on code.google.com by KyleRe...@gmail.com on 26 Oct 2009 at 10:28

GoogleCodeExporter commented 8 years ago
May be is a silly question but, have you included the script to jquery-oembed 
in your 
page?

<script type="text/javascript" src="jquery.oembed.js"></script>

Original comment by rchamo...@gmail.com on 27 Oct 2009 at 8:36

GoogleCodeExporter commented 8 years ago
Found it out.  The issue is with line 36 of the code.  The comma after "replace"
should be REMOVED.

embedMethod: "replace", // "auto", "append", "fill"

SHOULD BE:

embedMethod: "replace" // "auto", "append", "fill"

IE7 does not like comma if there's nothing after it.

Original comment by KyleRe...@gmail.com on 28 Oct 2009 at 2:11

GoogleCodeExporter commented 8 years ago
Thank you very much!

Original comment by rchamo...@gmail.com on 28 Oct 2009 at 10:33