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 6467897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T05:50:22+00:00 2026-05-25T05:50:22+00:00

i finished my app but when i test it on the other internet browsers,

  • 0

i finished my app but when i test it on the other internet browsers, there was a problem

i will add my code. i couldnt see the error.as i said it works on opera but not in firefox :/

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2011/fbml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </head>
    <body>
 <div id="fb-root"></div>
     <script type="text/javascript">
            window.fbAsyncInit = function() {
                FB.init({appId: '199193070140222', status: true, cookie: true, xfbml: true});

            };
            (function() {
                var e = document.createElement('script');
                e.type = 'text/javascript';
                e.src = document.location.protocol +
                    '//connect.facebook.net/tr_TR/all.js';
                e.async = true;
                document.getElementById('fb-root').appendChild(e);

            }
            ());

        function lget(idd){
              FB.api('/'+idd, function(response) {
                document.getElementById(idd+"_a").innerHTML ="<a href='" + response.link + "' id='"+idd+"_und' style='color:#12566C;font-size:14px;' onmouseover=document.getElementById('"+idd+"').style.textDecoration=underline; onmouseout=document.getElementById('"+idd+"').style.textDecoration=none; target='_blank'><b>" + response.name + "</b></a>";
                });
             } 




       </script>       


<div style="padding-left:6px;"><center>

<div id="525864081_a" ></div>

<script type="text/javascript">
lget(525864081);
</script>



<div id="534018674_a" ></div>

<script type="text/javascript">
lget(534018674);
</script>


</div>
</body>
</html>
  • 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-05-25T05:50:23+00:00Added an answer on May 25, 2026 at 5:50 am

    You are loading the Facebook JS SDK in async mode and thus the FB object is not ready when you call it inside lget, the async loading occurs after your calls to lget and even after the onload event in Firefox.

    Try not loading the code asynchronously and note that it is working fine

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2011/fbml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        </head>
        <body>
    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js"></script>
         <script type="text/javascript">
                    FB.init({appId: '199193070140222', status: true, cookie: true, xfbml: true});
    
      function lget(idd){
                  FB.api('/'+idd, function(response) {
                    document.getElementById(idd+"_a").innerHTML ="<a href='" + response.link + "' id='"+idd+"_und' style='color:#12566C;font-size:14px;' onmouseover=document.getElementById('"+idd+"').style.textDecoration=underline; onmouseout=document.getElementById('"+idd+"').style.textDecoration=none; target='_blank'><b>" + response.name + "</b></a>";
                    });
                 } 
    
         </script>
    
    <div style="padding-left:6px;"><center>
    
    <div id="525864081_a" ></div>
    
    <script type="text/javascript">
    lget(525864081);
    </script>
    
    
    
    <div id="534018674_a" ></div>
    
    <script type="text/javascript">
    lget(534018674);
    </script>
    
    </div>
    </body>
    </html>
    

    if you want to see the execution order try something like this

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2011/fbml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        </head>
        <body onload="console.log('onload event'); false;">
     <div id="fb-root"></div>
         <script type="text/javascript">
                window.fbAsyncInit = function() {
            FB.init({appId: '199193070140222', status: true, cookie: true, xfbml: true});
            console.log('FB object ready');
                };
                (function() {
                    var e = document.createElement('script');
                    e.type = 'text/javascript';
                    e.src = document.location.protocol +
                        '//connect.facebook.net/tr_TR/all.js';
                    e.async = true;
            document.getElementById('fb-root').appendChild(e);
                console.log('This executed first');
                }
                ());
    
            function lget(idd){
                console.log('lget - ' + idd);
                 };
           </script>
    
    
    <div style="padding-left:6px;"><center>
    
    <div id="525864081_a" ></div>
    
    <script type="text/javascript">
    lget(525864081);
    </script>
    
    
    
    <div id="534018674_a" ></div>
    
    <script type="text/javascript">
    lget(534018674);
    </script>
    
    
    </div>
    </body>
    </html>
    

    this is the output you’ll get in Firefox

    This executed first
    lget - 525864081
    lget - 534018674
    onload event
    FB object ready
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with building my iPhone app..so, i finally finished it, but
I have just finished developing a web app but I have a really annoying
I recently finished my PHP app and i would like to know if there's
I've almost finished my iPhone app and I'm making test using XCode 4 and
I need to test some android app but I depends of some thing that
I finished an app and after that I'm trying to write unit test to
I have finished developing an iPhone app and my client wants to test it
I finished building an app that allows beaming of photos, contacts and text clips
Just finished up my first mvc4 app. Everything is working great until I deploy
So I've successfully finished my first ruby app :) When i programmed it locally,

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.