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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:41:00+00:00 2026-06-17T18:41:00+00:00

I have this Ajax post request. Works great in Crome. Just opened it in

  • 0

I have this Ajax post request. Works great in Crome. Just opened it in IE and it fails completely. It is a div with images loaded into a carousel. The carousel used is http://caroufredsel.dev7studios.com/ (Which I would highly recommend for its easy implementation if anyone is after an image carousel)

When you click a folder

     <a href="javascript:void(0);" onclick="getImages(1)">Folder 1</a>

basically queries a php file and refreshes the div with a new set of images

  $.ajaxSetup ({  
    cache: false,
    async: false  
});  
 function getImages(id)
 {
 $.ajax({


 type: "POST",
 url: 'getImage.php',
 dataType: "json",
 data: "id=" + id, 
 success: function(data) {

      $('#scrolimg').html(data);
      $("#car1").carouFredSel({
auto : false,
items   : 4,
scroll  : 4,
circular : false,
infinite : false,
prev : "#foo1_prev",
next : "#foo1_next",
swipe       : {
    onTouch     : true,
    onMouse     : false
}
 });

 }

 });

When I have been reading similar problems on Stack most people say turn cache to false and async but that has not helped. Another solution was to make POST requests instead of GET but thats does not work for me either.

The code above works perfectly. The problem is in the getImage.php file. I have a loop thats running to find the image width and height with php function call getimagesize()

That function is not running in IE but working perfectly in all other browsers. Is my Ajax blocking this function from running?

   <?php do {
  $image = $_SERVER['DOCUMENT_ROOT']."/images/uploads/".$row_rs_image['thumbfile'];
   list($width, $height)= getimagesize($image); 
 ?>
     <img  src="/images/uploads/<?php echo $row_rs_image['thumbfile']; ?>"  width="<?php echo $width;?>" height="<?php echo $height;?>" />
    <?php } while ($row_rs_image = mysql_fetch_assoc($rs_image)); ?>

When I output the source I see the following

       <img name="creed" src="/images/uploads/320623-1358872780_thumb.png"  width="" height="" />
  • 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-17T18:41:01+00:00Added an answer on June 17, 2026 at 6:41 pm

    Found the issue. on get image sizes use this line instead

    list($width, $height, $type, $sizes)= getimagesize($image);

    then in the getImage.php

      <?php do {
      $image = $_SERVER['DOCUMENT_ROOT'].$row_rs_image['userimagespath'].$row_rs_image['thumbfile'];
       list($width, $height, $type, $sizes)= getimagesize($image);  
     ?>
      <img name="<?php echo $row_rs_image['imgname']; ?>" src="/images/uploads/<?php echo $row_rs_image['thumbfile']; ?>"  <?php echo $sizes;?> />
    

    Thanks to everyone for the help

    • 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 works well: {livre:empty_name} $.ajax({ url: sent.php, type: post, dataType:
i have this jquery code with an ajax request that works fine, but the
I have this jQuery script var dataString = class_id=+class_id; $.ajax({ type: POST, url: page.php,
I have grabbed some XML data using this piece of jQuery: $.ajax({ type: POST,
I have this code for doing an ajax request to a webservice: var MyCode
I have a strange problem with using ajax post requests. I use the request
I have a problem in my code, a button calls this ajax request from
My first post - firstly have to say that this site is great -
The post request to my controller action is coming from ajax like this: $.post(myurl.htm,
I have written this ajax request for username checking... function check_username() { var username

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.