How do I check if a video exists on YouTube, in client side

后端 未结 6 1860
攒了一身酷
攒了一身酷 2021-01-12 16:45

I am doing validation for my Youtube url text field.

I need to check, if the Youtube url does not exist I should throw error, I followed this answer an

6条回答
  •  再見小時候
    2021-01-12 17:07

    This is a known problem, see

    jQuery Ajax 404 Handling

    http://forum.jquery.com/topic/jquery-ajax-with-datatype-jsonp-will-not-use-error-callback-if-request-fails

提交回复
热议问题