Results 1 to 2 of 2

Thread: Basic Script Question

  1. #1
    Join Date
    Jun 2013
    Thanked 0 Times in 0 Posts

    Default Basic Script Question

    I know very little about javascript and coding in general, which is why I'm here. This is probably a very simple question:

    While I was on (Youtube-like site), I noticed that every other video (or so) had a random script across the top of the page that was some variation of

    OR simpy

    I'm just wondering if this is bleeding over from sloppy scripting, or if this is some reason for concern. Is this trying to inform me of something, or is it just a mistake on the part of Dailymotion?

    From what I've read so far, I assume this is a relatively common command for java/javascript. I'm just wondering what it's doing at the top of the webpage. According to google, the "fb-root" has something to do with Facebook.

    Thanks everyone!

    Edit: mod's edit

    Hi mynameisryan, welcome to DynamicDrive!

    In the future, do not cross-post (do not post more than one thread on the same topic). This only creates confusion.
    In many cases -especially since these are your first posts- it also makes us (the mods) think you're a spammer, and can get you banned pretty easily.

    In the meantime, I have deleted your other thread. This is the appropriate forum, since this is a javascript (not java) question.

    Please use the forum's bbcode tags and indent your code to make it more readable:

    for php code............[php] <?php /* code goes here */ ?> [/php]
    for html...............[html] <!-- markup goes here -->.....[/html]
    for js/css/other.......[code] code goes here................[/code]

    I've made these changes for you in your first post.
    Last edited by traq; 06-15-2013 at 12:27 AM. Reason: mod's note re: cross-posting

  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    What browser and what version of that browser on what OS and what version of that OS?

    And do you mean that you see it on the page, or in source view?

    It's true that there is code like that in the source code of their home page. But it's javascript, so you shouldn't be seeing it. If you are, perhaps your browser has javascript disabled, or you have a bad connection and the file is corrupted during transmission.

    On the other hand, if you mean you see it in the source code, yes it's there as part of a script that allows you to interact with the page visa vis FaceBook, presumably as to whether you want to Like or Dislike the page and/or a given video on it.
    - John

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

Similar Threads

  1. Resolved Basic OOP question
    By Dal in forum PHP
    Replies: 12
    Last Post: 01-11-2009, 09:39 PM
  2. Basic question
    By wanapitei in forum HTML
    Replies: 10
    Last Post: 02-21-2008, 04:36 AM
  3. another basic varible question
    By benslayton in forum PHP
    Replies: 1
    Last Post: 01-15-2007, 12:42 PM
  4. Basic Ajax Routine (get & post) : basic question
    By lee toto in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 11-23-2006, 01:55 AM
  5. A very basic question
    By Diversions in forum JavaScript
    Replies: 2
    Last Post: 10-20-2005, 06:53 PM


Posting Permissions

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