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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:06:31+00:00 2026-05-27T23:06:31+00:00

var url = /MyApp/pspace/filter; var data = JSON.stringify(myData); $.post( url, data, function(response, textStatus, jqXHR)

  • 0
var url = "/MyApp/pspace/filter";
var data = JSON.stringify(myData);
$.post(
  url, 
  data,
  function(response, textStatus, jqXHR) {
    console.log("response: " + response);
  },
  "json"
);

In reality, response should be a json string.

In Chrome, response is a string that I can parse with $.parseJSON().

In Firefox, response is an XMLDocument (with a parse error), unless I use dataType: "text". Why?

  • 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-27T23:06:32+00:00Added an answer on May 27, 2026 at 11:06 pm

    If you are setting “json” as your response type jQuery should parse it into an object for you automatically. If you forgot to tell jQuery what type of response to expect different browsers will treat it differently.

    The solution is to make sure you specify your response type as “json” and then of course to make sure the data that is being returned is an actual JSON string.

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

Sidebar

Related Questions

function checkSession(){ $.ajax({url: session.php, success: function(data){ if( data == 1){ var postFilen = 'msg.php';
I have this piece of code: $(#faq).click(function () { var url = $.get(faq, {
Given the following javascript (jquery) $(#username).keyup(function () { selected.username = $(#username).val(); var url =
i can reference link with specific id with following code $(document).ready(function(){ $(a#example_link_id).click(function(event){ var url
function check(id){ var _id = document.getElementById(id); url = test.php?check=1&id= + _id; } i want
I have a URL http://myapp.com/get_data that returns an application/json Content-Type . When I browse
I've configured my store as: var store = new Ext.data.JsonStore({ url: 'gridData.php', root: 'movies',
This is an example code from the prototype site. var url = '/proxy?url=' +
HI I have a URL var str:String = conn=rtmp://server.com/service/&fileId=myfile.flv or var str:String = fileId=myfile.flv&conn=rtmp://server.com/service/
var exampleURL = '/example/url/345234/test/'; var numbersOnly = [?] The /url/ and /test portions of

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.