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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:08:50+00:00 2026-06-09T03:08:50+00:00

In Safari and Firefox, the response part of the code is not working (i.e.

  • 0

In Safari and Firefox, the response part of the code is not working (i.e. from PHP–>Ajax–>jQuery). The variables definitely make it to the PHP fine (tested using mail() ), so it’s probably some small error on my behalf!

jQuery:

$.ajax({
    type: "POST",
    dataType: "json",
    data: postData,
    url: "http://www.kudiclub.com/test/login/?loginsub",
    success: function(data){
        if(data.success==false){
            $("#login .error").html(data.reply).show();
            $("#login-email").val(data.email);
            $("#password").val("");
        }else{
            window.location = data.ref;
        }
    }
});

PHP:

$data = array('success' => false, 'reply' => 'Username and password did not match.', 'email' => $email);
print json_encode($data);
return;

Hoping somebody can help. Thanks, Nick.

SOLUTION

After much fiddling about, it turns out that it doesn’t see a full URL as a relative path. Changing the url to '/test/login/?loginsub' did the trick.

  • 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-09T03:08:52+00:00Added an answer on June 9, 2026 at 3:08 am

    The server says: Content-Type: text/html. Is not a json document (application/json).

    http://www.kudiclub.com/test/login/?loginsub
    
    GET /test/login/?loginsub HTTP/1.1
    Host: www.kudiclub.com
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    DNT: 1
    Connection: keep-alive
    Cookie: PHPSESSID=060b8210adfb3c67ff792b9471c7fa1c
    Cache-Control: max-age=0
    
    HTTP/1.1 200 OK
    Date: Thu, 02 Aug 2012 22:12:10 GMT
    Server: Apache
    X-Powered-By: PHP/5.2.17
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Keep-Alive: timeout=2, max=200
    Connection: Keep-Alive
    Transfer-Encoding: chunked
    Content-Type: text/html
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some jQuery (1.6.2, latest stable) code which is working in Chrome, Firefox,
jQuery $.ajax() does not seem to work correctly with IE8 but it is working
As far as I know both FireFox and Safari can not work with Kerberos
I developed some javascript enhanced pages that run fine on recent Firefox and Safari.
Fast clicking on IE has slower response than firefox, chrome and safari. Why? (I'm
How do you prevent Firefox and Safari from caching iframe content? I have a
I'm having some problems with parsing the xml response from my ajax script. The
I am trying to incorporate jQuery autocomplete. It works fine with Firefox 3.6.. However
function ajaxFunction(id){ var ajaxRequest; var response; try{ // Opera 8.0+, Firefox, Safari ajaxRequest =
I am seeing this problem. In Chrome/Safari, Ajax response that gets set as content

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.