Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8726405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:14:14+00:00 2026-06-13T08:14:14+00:00

I have tried numerous pieces of JavaScript in my simple HTML file. However, none

  • 0

I have tried numerous pieces of JavaScript in my simple HTML file. However, none of them work. I am using Adobe Dreamweaver CS4 and have tried using both Safari and Firefox browsers

I’ve also done some tests, and JavaScript is enabled in both browsers. The problem is within my page or Dreamweaver. Could anyone give me some suggestions to find the issue?

This is an example of the code I’m trying to use.

    <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-href="http://facebook.com/facebook" data-send="false" data-width="450" data-show-faces="false"></div>

I placed the first part just under my tag and the second part in a table in the body.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:14:16+00:00Added an answer on June 13, 2026 at 8:14 am

    Problem is that protocol-less URLs inherit the protocol used to open the current document, that is, they usually do not work with the file:/// URI scheme.

    To test locally without such problems, install a local web server – XAMPP, WAMP, EasyPHP – and run the local files through the http:// protocol. Alternatively, you can upload it to your webserver for testing as well.

    Side-note: FB won’t load using the file:///, it needs to be loaded on a web server (a localhost one will work as well).

    Fiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read numerous people with this question and have tried numerous strategies. However,
how to set SOH and ETX by using xslt -1.0 I have tried numerous
I have tried numerous things and nothing seems to be working. I am using
I have created an fbml application. I have tried numerous examples of fbjs but
I have tried many permutations but they all don't seems to work well. Am
I need to combine Expression Engine with http://www.infinite-scroll.com . I have tried numerous ways
I've researched and tried numerous options to try and get this to work, but
I have tried numerous ways to fix this error, but they haven't fix my
I have tried numerous attempts to fix this problem or bug, firstly by deleting
Ive been messing with this a while and have tried numerous ways. It still

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.