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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:12:58+00:00 2026-06-04T07:12:58+00:00

I am working with the jquery post module…. $(‘#btnAuthentication’).click(function(){ $.post(‘callc2dm?param=authentication’, function(data) { alert(data); });

  • 0

I am working with the jquery post module….

$('#btnAuthentication').click(function(){
    $.post('callc2dm?param=authentication', function(data) {
      alert(data);
    });
});

The alert show correctly in Chrome,IE but not in firefox
for chrome it shows the value as “From Server authentication” which is correct as I am just checking whether data is coming from server or not but when I run the same code in FireFox it shows a message like this [object XMLDocument]

Why is it so?

Thanks in advance………….

  • 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-04T07:12:59+00:00Added an answer on June 4, 2026 at 7:12 am

    Ok I get it fixed , I am not setting the content type when sending back the response,so different browsers are seeing the content differently, and showing the message as and so………..

    response.setContentType("text/html");
    

    and it solved my issue.Now every browser is showing the message as it is required to do so.

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

Sidebar

Related Questions

The jQuery $.post() function is not working in IE. I tried to open developer
Currently all working with my jquery $.post actions, successful connections, query and json_encode return
I am currently working on a project that lets users post comments with jquery
Still working through JQuery to get data and repopulate portions of a page. Right
The following java-script is working fine (Jquery) $(document).ready(function(){ $('#c_area').load($('.m_top:first').attr('href')) }); $('.m_top').click( function(){ $(#myDiv).html('<img src=images/loading.gif
I am working on a comment script using PHP and jquery. My jquery post
JQuery code: //This passes NULL for CategoryID, CategoryName, ProductID, ProductName $(#btnPost).click(function () { var
I have a JQUERY AJAX post function that will work if there is one
While working with jQuery and PHP a problem occurs with loading new data from
I have a jQuery post to a method in '.asmx' file. It was working

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.