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

  • Home
  • SEARCH
  • 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 861797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:02:13+00:00 2026-05-15T09:02:13+00:00

I’m running a weird issue here. I have code that makes jquery ajax calls

  • 0

I’m running a weird issue here. I have code that makes jquery ajax calls to a web service and dynamically adds controls using jquery. Everything works fine on my dev machine running IIS 5.1, but not when deployed to IIS 6. I’m using VS2010/ASP.Net 4.0, C#, jQuery 1.4.2 and jQuery UI 1.8.1. I’m using the same browser for each.

It partially works though. The code will add the controls to the page, but they aren’t visible until I click them (they aren’t visible though). I thought this was a css issue, but the styles are there too.

The ajax calls look like this:

$.ajax({
            url: "/WebServices/AssetManager.asmx/Assets",
            type: "POST",
            datatype: "json",
            async: false,
            data: "{'q':'" + req.term + "', 'type':'Condition'}",
            contentType: "application/json; charset=utf-8",
            success: function (data)
            {
                res($.map(data.d, function (item)
                {
                    return {
                        label: item.Name,
                        value: item.Name,
                        id: item.Id,
                        datatype: item.DataType
                    }
                }))
            }
        })

Changing the content-type makes the autocomplete fail. I’ve quadruple checked and all the paths are correct, there is no document footer enabled in IIS, and I’m not using IIS compression.

Any idea why the page will display and work properly in IIS 5 but only partially in IIS 6? (If it failed completely, that’d make more sense!). Is it a jQuery or CSS issue?

EDIT: I’m using “contentType: “application/json;” charset=utf-8″ I copied a test call that had application/javascript.

@Gaby: I’m well aware of the fact that the server has nothing to do with CSS or javascript, however, that is the only difference between the code that does and doesn’t work.

All the jquery/css files are identical between my local dev machine (IIS 5) and the server (iis 6).

@jaymz: I’ll give fiddler a try to see if there’s a difference. I am using IE8 but it isn’t going into compatibility mode.

SOLUTION: (Compatbility Mode!)
After checking everything in Fiddler and finding no differences, I tried it in Firefox, where it worked. Got me to thinking and sure enough, I was wrong, IE WAS going into compatibility mode. apparently by default it will use compatibility mode on the intranet, but not localhost (which happened to be the different versions of IIS). I tried IE7 and got the same thing. I need to change my code to make sure it works on IE7 as well.

  • 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-15T09:02:14+00:00Added an answer on May 15, 2026 at 9:02 am

    Have you run the request through with a tracer? Try using Fiddler in IE, and see if the headers/content is being returned differently from the 2 different servers.

    Off the top of my head, I can only think that IE (if it’s IE8, you didn’t mention what browser you were using), is using Compatability mode when it sees IIS 5, but not for IIS 6. I could be way out with that, but the headers should give you more of an idea of what’s different.

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

Sidebar

Ask A Question

Stats

  • Questions 454k
  • Answers 454k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If the grid shows or represents multiple orders at once,… May 15, 2026 at 9:56 pm
  • Editorial Team
    Editorial Team added an answer I'm not able to reproduce (I'm on Ruby 1.9.1 mingw32… May 15, 2026 at 9:56 pm
  • Editorial Team
    Editorial Team added an answer Built-in pow takes two or three arguments. If you do… May 15, 2026 at 9:56 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.