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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:11:28+00:00 2026-05-26T07:11:28+00:00

this is my first question to the stack. jQuery.ajax type: Post to an ashx

  • 0

this is my first question to the stack.

jQuery.ajax type: Post to an ashx file not being initiated in IE. works fine in FF, Chrome, and Safari

Code below:

$.ajax({
    type: "Post",
        url: "http://[ ... ]loguserdata.ashx?" + dataString,
        data: "",
        cache: "false",
        contentType: "text/plain",
        success: function(msg){
            //alert( "Data Saved: " + msg );
        }
});

by works fine in FF, etc. I mean the ashx file is called and info is logged.
I can see the ajax call in fiddler, firebug and chrome’s equivalent.

but there doesn’t seem to be jackchit happening in IE9 or in IE compatibility mode.

I can get several versions of the code above to work in the other browsers. Including a $('#result').load( ...

but NOTHING works in IE

btw, works fine locally in IE.

oh, and I don’t give a diddly poo about any return value.

and it’s not a cache issue. I have a date=getTime() tacked onto the end of the querystring.

querystring (dataString) looks something like fname=john&lname=doedy

EDIT: I have solved this issue. I will post a thorough answer tomorrow when I have time.

  • 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-26T07:11:28+00:00Added an answer on May 26, 2026 at 7:11 am

    Long story truncated:
    You can’t do a XMLHttpRequest crossdomain. Use jQuery’s getJSON method with the querystring parameter &callback=? added to the url. This I believe converts the datatype to JSONP.

     var url = 'http://handlers.flowauto.com/eprice/loguserdata.ashx?fname=jim&callback=?';
            $.getJSON(url, function(data) {
                // do some stuff
            });
    

    Here are a few links that helped me solve this.

    XMLHttpRequest cannot load an URL with jQuery

    http://api.jquery.com/jQuery.getJSON/ see excerpt below

    JSONP If the URL includes the string “callback=?” (or similar, as
    defined by the server-side API), the request is treated as JSONP
    instead. See the discussion of the jsonp data type in $.ajax() for
    more details.

    http://api.jquery.com/jQuery.ajax/ see excerpt below

    Additional Notes: Due to browser security restrictions, most “Ajax”
    requests are subject to the same origin policy; the request can not
    successfully retrieve data from a different domain, subdomain, or
    protocol. Script and JSONP requests are not subject to the same origin
    policy restrictions.

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

Sidebar

Related Questions

this is my first question on Stack Overflow. This is not really a programming
First off - hello, this is my first Stack Overflow question so I'll try
this is my first question here :) I know that I should not check
This is my first post, so please forgive me if this question has been
this is my first question on stack overflow, so be gentle. Let me first
Hey there guys, this is my first question on Stack Overflow. I figured this
This is my first question here on stack overflow. i need help on a
this is my first question on stack overflow but I have some experience in
this is my first question here at Stack Overflow. I've been looking for a
This is my first post to stack overflow,... :) I like this site a

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.