Results 1 to 4 of 4

Thread: Javascript code wont work

  1. #1
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript code wont work

    In firefox, I type
    Code:
    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.
    Last edited by weido; 05-22-2010 at 03:12 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    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
    Last edited by jscheuer1; 05-22-2010 at 07:00 PM. Reason: remove meaningless link

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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/...reference.html

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •