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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:15:36+00:00 2026-06-03T06:15:36+00:00

I have a pretty strange problem with jQuery: I have a website (with Flask)

  • 0

I have a pretty strange problem with jQuery:

I have a website (with Flask) at: http://localhost:5000/, it works perfectly. Now I’ve set up a subdomain, edited my /etc/hosts (I added 127.0.0.1 fonts.localhost), the subdomain uses exact same html (even less) but when I load the site jQuery gives me this error:
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined. It is coming from the function uaMatch in line 884 of the uncompressed jQuery 1.7.2 file. The argument passed to the function must be undefined, uaMatch is just called a single time (line 925) with the userAgent, the userAgent is assigned at line 75: userAgent = navigator.userAgent. navigator.userAgent is "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19" (according to the debugging-console).

So I really don’t understand why I get this error, which just occurs on the subdomain. The important html of fonts.localhost:5000.

<!doctype html>
<title>test</title>
<meta charset=utf-8>
<link rel=stylesheet type=text/css href="http://localhost:5000/static/style.css">
<link rel=stylesheet type=text/css href="http://localhost:5000/static/bootstrap.min.css">
<script type=text/javascript src="http://localhost:5000/static/jquery-1.7.2.min.js"></script>
<body>
    …
</body>

EDIT:
It also doesn’t work with jQuery uncompressed (I also included the jQuery files hosted at google for testing, the same 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-06-03T06:15:37+00:00Added an answer on June 3, 2026 at 6:15 am

    Oh dear, I finally found the error, seems like jQuery can’t handle domains with no TLD, I changed the hosts entry from 127.0.0.1 fonts.localhost to 127.0.0.1 fonts.localhost.localdomain, after this change jQuery worked. Is it worth a bugreport?

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

Sidebar

Related Questions

I have a very strange problem. I'm making a pretty standard ajax-call with jQuery,
I have a pretty strange HTML problem I have never experienced before. I have
This is a pretty strange problem. I have a book that I have been
This is a pretty strange issue so bear with me. I have a stored
I have a very strange situation. I´m working on a pretty big Java application
I have pretty standard Qmail toaster installation. I'm using the dot files to set
So I already have the website working (I'm not working from scratch). The problem
Okay, I have a strange problem. I wanted to run one of my programs
sorry for the cryptic question title. I'm having a strange problem and i have
I have a problem with strange generated SQL in ef4 ctp5. I have simple

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.