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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:33:01+00:00 2026-06-02T01:33:01+00:00

I have a problem with div loading/fading.. This is my html. <div id=email_response> <div

  • 0

I have a problem with div loading/fading.. This is my html.

<div id="email_response">
<div id="email_loader">
    <img src="/img/ajax_load.gif.pagespeed.ce.sBYFmTTK7I.gif">
</div>

The jQuery:

    $("#email_loader").html("<img src='http://example.com/img/ajax_load.gif' />");

    $("#email_response").fadeIn(500);
$.get("http://example.com/inc_appdl_main_api.php", {
        to : to,
        app_id : FA.appID
    }, function(data) {
        if (data.length > 0) {
                         $("#email_loader").html(data);
             $("#email_response").delay(1000).fadeOut(500);   
        }

    });
         setTimeout ( "FA.iframeClose()", 2000 );

The div email_response , should load/fadeIn for half a second..then the response should be obtained from jquery ..and then a the end an iframe that contains all the html markup should close..

Everything works apart from the code inside the get success function..
I know that the success function is actually triggered..cause the server (php) code, does what it does!!!

Whats the problem? I dont see the response fading out..
The code inside the success function doesnt work 🙁

if (data.length > 0) {
                     $("#email_loader").html(data);
             $("#email_response").delay(1000).fadeOut(500);   
        }

UPDATE:
THIS IS WHAT I GET IN THE CONSOLE. AFTER THE GET FUNCTION IS TRIGGERED.

XMLHttpRequest cannot load http://example.com/inc_appdl_main_api.php?to=makovetskiyd%40yahoo.co.uk&app_id=81. Origin http://api.example.com is not allowed by Access-Control-Allow-Origin.

The html markup and javascript is in an iframe which has another site on it..

  • 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-02T01:33:03+00:00Added an answer on June 2, 2026 at 1:33 am

    Access-Control-Allow-Origin. You are accessing something out of your domain? cross-domain-requests-with-jquery, cross-domain-ajax-querying-with-jquery

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

Sidebar

Related Questions

i have a problem with loading .html pages (with JavaScript inside) into a div
I am loading some text dynamically into a div, but have the problem that
I have a div with <img> and <a> in it. But I have problem
I have a problem with IE. I have a fixed div like this: #fixed
I have a problem with this script. At first I had the <div> s
I have a problem. I have this function: function isDone() { if(isDone){ $(#loadingStatus).html(NOT DONE...);
I have this HTML: <div class=problem_comment_text id=suggested_solution_text_110 ><p style=font-family: arial;>Solution name: <a class=expand_suggested_solution href=#
I don't have any problem parsing WebView HTML or loading URLs (relative or absolute)
I have a problem about div position relative alignment. I want the second div
i have problem with image vertical-align in div .img_thumb { float: left; height: 120px;

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.