user699242
user699242

Reputation: 1833

JavaScript issue in IE with YouTube iFrame API

Sorry for the ambiguous title, but this is a strange issue. I'm using the YouTube iFrame API and it works great in all browsers except IE. In IE, none of the JavaScript runs at first. Then, when I open up DevTools and refresh, everything works flawlessly! Anyone, have a clue what could be causing this?

Here is the prototype: http://www.frontendconcepts.com/youtubetest/

Upvotes: 0

Views: 629

Answers (1)

wirey00
wirey00

Reputation: 33661

Remove your console.log(response); in your ajax call - IE will stop js execution once it hits that line since it doesn't have console until you open up developer tools

$.getJSON('https://gdata.youtube.com/feeds/api/users/' + userId + '/uploads?&max-results=' + maxResults +'&category=' + tagName + '&alt=jsonc&v=2&callback=?', null, function(response) {
  console.log(response); // <-- here

Upvotes: 1

Related Questions