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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:37:59+00:00 2026-06-09T23:37:59+00:00

I use an ajax head request to check for a file. In most cases

  • 0

I use an ajax head request to check for a file.
In most cases the file wouldn’t exist and it would be nice to somehow prevent the 404 to show up in my debug console. Is there a nice way to achieve that?

Just to be clear: http://jsfiddle.net/kannix/FFLdP/

  • 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-09T23:38:01+00:00Added an answer on June 9, 2026 at 11:38 pm

    No, unfortunately, you cannot.

    404 errors are handled internally, you cannot suppress the error, not even with overwriting the error events in javascript or try-catching it.

    You could write a serverscript to check if a certain file exists and call that one to check if the file exists before calling the file that might not exist.

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

Sidebar

Related Questions

I'm trying to read the http-response by ajax request. As an echo-server I use
Currently Im trying to do ajax request using jQuery Mobile. I`m trying to use
How would you convert following code to use only jquery library? <html> <head> <script>
I am making use of AJAX on my site and I would like to
I use ajax to run MySQL query and echo json_encode result, so that I
Is this possible to use Ajax.Beginform with update target inside of ajax form. like
I am trying to use AJAX for a web app game that im making.
How do i use ajax to send POST requests to the server instead of
I am trying to use .ajax() to post a People object to a MVC2
In my page I use ajax loader gif. When the button is clicked the

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.