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

The Archive Base Latest Questions

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

I am getting a javascript error below, but I can’t seem to find the

  • 0

I am getting a javascript error below, but I can’t seem to find the problem:

*Message: Expected ‘)’
Line: 431
Char: 220
Code: 0

URI: http://mywebsite/CustomerLogin.aspx*

Line 431 is this javascript line:

<script language='Javascript'>
    var varDateNow = new Date();
    var varTimeNow = varDateNow.getTime();
    var varAlertTime = document.getElementById('cphTopContent_AlertTime').value;
    if(varTimeNow - varAlertTime < 1500)
        {alert('2' values you entered were not valid:\n\nLog In -  This value requires at least 6 characters. \nPassword -  This value requires at least 4 characters. \n');}
</script>  

What is causing the javascript 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-09T17:50:21+00:00Added an answer on June 9, 2026 at 5:50 pm

    You have a missing open quote. Try taking out the close quote after the 2 in the alert.
    Here’s what happened behind the scenes: Since you closed the quotes after the 2, you’re actually opening a new set of quotes at the end of the line after the \n. So the compiler interprets everything following that point as a string, and thus it never finds the closing parenthesis.

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

Sidebar

Related Questions

I have coded a nice script but i am constantly getting Error on line
I have a form and 2 javascript functions below but I am getting 2
In my Javascript code after the line below: url: ....../Misc-2/Ci-TodoList/index.php/home/jsonAddData, I am getting the
I have getting a javascript error when attempting to reference an object in a
I'm getting a javascript error. It has to do with this section of code:
Using the Venkman JavaScript debugger for Mozilla and getting the following error: XML Parsing
I am trying to resize the image using javascript, but I am getting errors
I'm mostly a djangonaut and phper, but I'm getting javascript development. I've been looking
I am just getting into javascript and d3.js. Please excuse the simple question, but
I am getting the image size using javascript, but it won't return the correct

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.