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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:09:53+00:00 2026-05-25T02:09:53+00:00

I have following code $.ajax({ type: ‘POST’, url: ‘index.jsp’, data: ‘id=111’, dataType: ‘jsonp’, success:

  • 0

I have following code

$.ajax({ type: 'POST',
                url: 'index.jsp',
                data: 'id=111',
                dataType: 'jsonp',
                success:  function(data) {
            alert(data.result);
                },
                error: function( err1, err2, err3 )
        {
              alert('Error:' + err3 )
        }
            });

I am returning response as callback parameter generated with argument of json . like this

jQuery16105097715278461496_1314674056493({"result" : "success"})

This works absolutely fine in FF . In IE 9 it goes to error function and shows

"Error: jQuery16105097715278461496_1314674056493 was not called" . 

when I see F12 . I see a warning which says .

SEC7112: Script from http://otherdomain.com
index.jsp?callback=jQuery16105097715278461496_1314674056493
&eid=111&_=1314674056493 
was blocked due to mime type mismatch 

enter image description here

enter image description here
enter image description here

  • 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-25T02:09:54+00:00Added an answer on May 25, 2026 at 2:09 am

    try adding a contentType

    $.ajax({
         type: 'POST',
         url: 'index.jsp',
         data: {id:'111'},
         contentType: "application/json; charset=utf-8",
         dataType: 'jsonp',
         success:  function(data) {
           alert(data.result);
         },
         error: function( err1, err2, err3 )
         {
           alert('Error:' + err3.status );
           alert(err1.responseText);
            }
     });
    

    here is a good article http://msdn.microsoft.com/en-us/library/gg622941%28v=vs.85%29.aspx

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

Sidebar

Related Questions

I have the following code; $.ajax({ url: /Home/jQueryAddComment, type: POST, dataType: json, data: json,
I have the following code: $.ajax({ type: POST, url: url, data: sendable, dataType: json,
I have the following jQuery code: $.ajax({ type: POST, url: /search, data: $(form).serialize(), success:
I have the following code $.ajax({type: GET, url: / + filename, dataType: xml, cache:
I have the following code: function get_login() { hideshow('loading2',1); error(0); $.ajax({ type: POST, url:
I have the following code var test; $.ajax({ type: "GET", url: "../views/person/controller.php?actor=person&action=checkAge", data: "age="
I have the following code: var src, flickrImages = []; $.ajax({ type: GET, url:
I have the following code: $.ajax({ type: GET, url: /Search/GetNewData //Controller/ActionMethod ---snip--- )}; This
I have the following code . var last_id = ''; $('.products').each(function(){ $.ajax({ type: POST,
I'm using the following code: $.ajax({ type:'GET', url: 'save_desc.php?scrapbook_name=<?php print(addslashes($scrapbook_name)); ?>, success: function(data){ $(#

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.