slarson22 Posted February 13, 2012 Share Posted February 13, 2012 function CHECK_VIDEO(){ error_type = 1; VIDEO_URL = document.getElementById("YOUTUBE_URL").value; VIDEO_URL_INFO = youtube_get_code.exec(VIDEO_URL); ys.loadVideoById(VIDEO_URL_INFO[1], 0, "default"); } This function will run good, then error the second run, then run good the third time, then error the fourth. So it errors everyother time. Why? Heres the error in firebug: TypeError: VIDEO_URL_INFO is null ys.loadVideoById(VIDEO_URL_INFO[1], 0, "default"); Quote Link to comment https://forums.phpfreaks.com/topic/257000-weird-error/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.