jQuery 1.8.2 | Function breaks when confronted with deleted Youtube videos.

jQuery 1.8.2 | Function breaks when confronted with deleted Youtube videos.

Here's the scenario: I have a string of comma-delimited Youtube video IDs handled by a function which displays results as clickable video image thumbnails. Problem is, if that string contains an ID that does not exist anymore (or is inaccessible), the function breaks instead of skipping (or importing) the missing video image thumbnail. Is there a jQuery/Javascript solution that, upon button click, a function imports thumbnails of all existing and deleted videos requested by the ID string ? I don't mind displaying the thumbnails of the deleted videos, where possible, in fact, that would be best as the thumbnail count would be the same as original request. I'm using Ajax/get/jsonp and I dunno if error handling can tackle this issue. This is the last major hurdle of my project which I must overcome before my hair gets all pulled out LOL! Help anybody?
    • Topic Participants

    • i1drr