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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:23:23+00:00 2026-05-18T08:23:23+00:00

I have a jquery/ajax website at tarh33ls.com For some reason, in firefox, i get

  • 0

I have a jquery/ajax website at tarh33ls.com
For some reason, in firefox, i get the following error:

uncaught exception: [Exception…
“Component returned failure code:
0x80004005 (NS_ERROR_FAILURE)
[nsIDOMLocation.href]” nsresult:
“0x80004005 (NS_ERROR_FAILURE)”
location: “JS frame ::
http://tarh33ls.com/ :: ::
line 26″ data: no]

Line 0

but line 26 is:

if (location.href.indexOf("#")==-1) {location.href="http://tarh33ls.com/#";}

How would that generate an error?

  • 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-18T08:23:23+00:00Added an answer on May 18, 2026 at 8:23 am

    I’m not sure why the error happens, but it seems this fixes it:

    Move the if (location.href.indexOf("#") == -1 code inside the $(document).ready block (at the top of it), like this:

    $(document).ready(function() {
        if (location.href.indexOf("#") == -1) {
            location.href="http://tarh33ls.com/#";
        }
        $.ajaxSetup({
    ...etc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following: jQuery.ajax({ type: GET, url: website/Function, data: '&link=' + link, contentType:
I have a website that paginate result via jquery.ajax(). URLs looks like: website.com/index.php?page=N I've
I'm using jQuery. I have website feature that does an ajax search and returns
I have a jQuery AJAX call with type:'GET' like this: $.ajax({type:'GET',url:'/createUser',data:userId=12345&userName=test, success:function(data){ alert('successful'); }
I have done jQuery and Ajax, but I am not able to get the
I have written some jQuery ajax code where I am sending a request to
Let's say I have the following jQuery AJAX call: $.ajax({ type: POST, url: MyUrl,
I have a bunch of jQuery Ajax calls on my WordPress website. After making
We've built an AJAX website which uses JQuery UI extensively. we have 30+ homemade
I finally have jQuery AJAX down pretty well and have my website all created,

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.