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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:14:36+00:00 2026-06-12T06:14:36+00:00

All the javascript is in style.js – http://html5canvas.hoangminhdat.com You can see that the blue

  • 0

All the javascript is in style.js – http://html5canvas.hoangminhdat.com

You can see that the blue line appears when the page load and quickly disappear after a certain amount of time. I’ve spent hours and, have done everything I can to debug it but nothing I change fixed it.

This is what I did:

  1. I use global variables to create the red line.

  2. I get rid of the global variables and create a class (Circle). I store the objects in an array (circles) and use those objects’ properties instead of the variables.

  3. I successfully apply for the first element of the “circles” array (circles[0]). I added circles[1]. And the blue line actually appears in the canvas for roughly 1 second, and then it disappears…

I can’t find any mistake in my code. Since the circles[0] works, and the circles[1] works for a little while when the page load. I believe that my code is fully functioning.

Well, I hope someone can help me.

  • 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-12T06:14:37+00:00Added an answer on June 12, 2026 at 6:14 am

    You have some error in your loop

    //use the position to make dots
    for (var i in points[j]) { ... }
    

    It is throwing lots of errors.

    I haven’t gone into detail, but it is looking for some extra item in the array. You can see your example working here with this change

    //use the position to make dots
    var numPoints = points[j].length-1, i;
    for (i = 0;i<numPoints;i++) {
    

    Maybe you can go from there to identify what was exactly wrong in all your code…

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

Sidebar

Related Questions

How can I check whether all JavaScript functions have loaded properly on a page?
I need to remove all the style definitions in a page using javascript, to
I'm trying to change the style of all links in a page via Javascript.
The below file contains all the javascript for a page. Performance is the highest
When i added <form> to my web page, all my javascript stopped working, and
Is there a way to select all elements that have a given style using
If a JavaScript function in a web page adds STYLE or SCRIPT elements to
What I want to do is to separate all my JavaScript from the page,
I know document.styleSheets which consists of all valid style sheets in a page. I
How can I set the default style for a checkbox in jquery or javascript

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.