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

The Archive Base Latest Questions

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

Hi guys i want to use an load image during the .ajax request with

  • 0

Hi guys i want to use an load image during the .ajax request with Jquery.
I found some tutorial on internet to achieve this. But i get 403 error…

Here some code:

$.ajax({
        type: "POST",
        url: "person_controller.php?action=newConsult",
        data: dataString,
        success: function(div){
            $("#generateDiv").html('<img src="css/images/ui-anim_basic_16x16.gif" />');
            $('#generateDiv').load(div);
        },
    });

When i run the above code, firebug gives me 403 error(you don’t have permission to access).
But i am only loading the image?!? Without the image it does work.

The path of image is correct i see the image spinning but firebug gives me the 403 error.
How is this possible when i run this application on localhost?

  • 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-22T01:25:24+00:00Added an answer on May 22, 2026 at 1:25 am

    you could try the following which sets the loading image prior to the request.

    $.ajax({
        type: "POST",
        url: "person_controller.php?action=newConsult",
        data: dataString,
        beforeSend: function() {
            $("#generateDiv").html('<img src="css/images/ui-anim_basic_16x16.gif" />');
        },
        success: function(div){            
            $('#generateDiv').html(div);
        },
    });
    

    Alternativly, you could use the BlockUI jQuery plugin (http://jquery.malsup.com/block/)

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

Sidebar

Related Questions

Hay guys, i want to use something like this users = User.objects.all() but i
Hi guys I want to create an intro image (fade in and fade out
Hey guys, I want to store a categorized list of URLs. This is an
Hey guys, I have an application that I want to display some data from
guys I want to start programing with C++. I have written some programs in
Hey guys i want to use two arrays in on mysql UPDATE query. So
Hey guys i want to use an php variable as a part of a
Hi Guys I want to use ICS spinner in my android application so i
guys I want to input multi-line text into a DataGridTextColumn, I can use enter
What I want to do: I want to use sprite sheets to load all

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.