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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:20:29+00:00 2026-05-19T12:20:29+00:00

i have the ajax code that is displayed in some div at the very

  • 0

i have the ajax code that is displayed in some div at the very top and left side of this div, but how i can position the ajax animation in the middle and center of this div?

<script language="javascript">
        function visiontype_kamp(type,_link_)
            {
            var url_str = "index.cfm?fuseaction=objects2.emptypopup_get_vision_tabbed&is_property_vision="+type+"&&vision_position=1&mode=1&dongu=9&is_sale=0&vision_image_display=1&is_vision_prices=1&is_vision_product_name=1&is_vision_product_detail=1&is_vision_product_detail2=0&vision_image_width=50&vision_image_height=45&this_row_id_=kamp"
            AjaxPageLoad(url_str,'vision_icerik_kamp' ,0,'',_link_);
            }  
    </script>

and this is the div:

<div id="vision_icerik_kamp"></div>
  • 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-19T12:20:30+00:00Added an answer on May 19, 2026 at 12:20 pm

    It is simple if your div has predefined dimensions, as I assume it does not then it means it has no dimensions so there si no way of finding such thing as middle, you’ve got a center as it is a block spanning as much as it can, but it has no height, so what you have to do is first of all set a height on it via javascript, then place the animating gif as background image and set the background position via javascript as being center HEIGHT/2px, this way it should work.

    document.getElementById(“vision_icerik_kamp”).style.height = ‘100px’;
    document.getElementById(“vision_icerik_kamp”).style.backgroundImage = “./image/url.gif”;
    document.getElementById(“vision_icerik_kamp”).style.backgroundPosition = “center 20px”;

    I do not know if x coordinate is first or the y coordinat anyway this would be an idea, than I think the div should not be absolutely empty, you should place an &nbsp; inside it

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

Sidebar

Related Questions

I have this code that performs an ajax call and loads the results into
I have some jQuery code. I have called an Ajax function file, file.php, that
I have always been for documenting code, but when it comes to AJAX +
I have a message board, and I have some code that loads new messages
With ASP.NET MVC, it is common to have AJAX code(e.g. jQuery) to invoke web
I have developed code with Ajax and jQuery. I have got a response from
I have a basic ajax application, which will not work, instead the php code
I have written jQuery code, in files Main.html and ajax.php . The ajax.php file
I'm using an Ajax update panel and have recently added ASP.NET tracing code to
I am using asp.net MVC to develop an application that will have ajax interactions.

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.