Jump to content

Weird Error


slarson22

Recommended Posts

      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");

Link to comment
https://forums.phpfreaks.com/topic/257000-weird-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.