intanpalupidn / jquery-oembed

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

"auto" embedMethod fails - "insertCode is not defined" - see patch #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've just updated to r19 - great work Richard!
Thanks, Nick @nfreear

What steps will reproduce the problem?
1.
 <script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
 <script
src="http://jquery-oembed.googlecode.com/svn-history/r19/trunk/jquery.oembed.js"
></script>
 <script>
 $(document).ready(function() {
   $("#oembed").oembed("http://youtube.com/watch?v=VesKht_8HCo", {
embedMethod: "auto" });
 });
 </script>
 <p id="oembed"></p>

What is the expected output? What do you see instead?
* Expected: an embedded YouTube video
* Actual: no embed "Error: insertCode is not defined, line 49"

What version of the product are you using? On what operating system?
* jquery-oembed @r19 / Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6;
en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8

Please provide any additional information below.
* The attached patch fixes with $.fn.oembed.insertCode(..) calls

Original issue reported on code.google.com by n.d.freear on 12 Mar 2010 at 10:32

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks again!

Original comment by rchamo...@gmail.com on 15 Mar 2010 at 10:12