PDA

View Full Version : Javascript code wont work



weido
05-22-2010, 05:41 AM
In firefox, I type

javascript:document.getElementById("player").sendEvent(''SEEK", 0);
into the Address bar and hit enter. Why doesn't it work? How do I correctly "seek" a video.

jscheuer1
05-22-2010, 12:30 PM
Please post a link to a page on your site that contains the problematic code so we can check it out.

weido
05-22-2010, 03:13 PM
Please post a link to a page on your site that contains the problematic code so we can check it out.
Just another YouTube video

jscheuer1
05-22-2010, 07:04 PM
To help you with your code, I need a link to your page, not to YouTube. However, the Google YouTube javascript api is probably your best bet:

http://code.google.com/apis/youtube/js_api_reference.html

Follow the instructions there. It's a little complicated, but works. I've used it.