javascript

  1. Aidan

    HTML A-frame add onclick function to a shader

    Hello, I have some code written in a-frame (https://aframe.io) that can be found at https://jsfiddle.net/AidanYoung/h0cb1nq8/ And I'm trying to find a way to add an onclick event to the <a-entity id="lettersEntity" onclick='console.log("Hello")' geometry="primitive: plane; width: 2; height...
  2. T

    HTML Add or multiply two numbers

    Good day I am trying to get a total of two numbers. The first number I need to get form my page (the number changes every few seconds (crypto clicker) Second number will always be 35 This is the code I got after search, but do not know how to get it to work <form>...
  3. J

    JavaScript Help combining two functions

    Hi, I have these two functions which have mostly similar code.. so I want to combine them into one function.. any help appreciated. previousMonthImg.onclick = function() { if (!(monthSelect.value === "Jan" && yearSelect.value === "2010")) { monthSelect.selectedIndex--; if...
  4. Malcolm

    The Odin Project

    The goal of The Odin Project is to provide a complete path for students to go from zero programming knowledge to employed as web developers while working with other students and picking up the skills to become self sufficient along the way. https://www.theodinproject.com
  5. wheresthatcode

    HTML & CSS HTML Editor within HTML website

    I have created an intranet through css and html. There is a particular page that has on it the schedule for each day. At the moment i'm editing that page each day for them. Is there a way to create a html page that will have a simple imbedded editor that you can just change the wording and...
  6. C

    Python/Django or Headless WP/JS

    Hi, Code Forum. We're a medium-sized agency & we're starting to use different programming languages to get better page speeds. We have had many people tell us that Python & Django is the way to go. We have had others say that using Headless WordPress with a JS Language like, next.js would be...
  7. C

    HTML embedding js processing pde in html

    i'm cannibalizing an example i found online to embed a simple js processing file in html, but the canvas is appearing blank for me. i have absolutely no html experience- just want to put a js file on a web browser. here's the html file in case it's a simple issue <!-- saved from...
  8. anish117p

    JavaScript My javascript filters my header also...

    Hi folks, hope you are all well! I have the below code running on a html. everytime i run it it also filters the header. could you kindly help. thanking you inadvance. <script> function searchTable() { var input, filter, found, table, tr, td, i, j; input =...
  9. T

    JavaScript My picture has disappeared and text overlays from display html function button in javascript ctx fillText.

    Hi, I'm afraid this is probably very basic but I'm having a nightmare trying to fix it. After getting the input box to eventually display in the ctx fillText area and have now lost my image and the text overlays each time I type, any advice would be greatly appreciated. <canvas id="myCanvas"...
  10. 3lyfox

    JavaScript some kind of error in my code

    thats my html of it -- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Task Board</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="h1">...
  11. R

    JavaScript How to group multiple arrays into one data structure

    I am a beginner to Javascript and struggling a lot with structuring and displaying my data. I have 4 arrays: var iDs = [1234, 5678] var sources = [[ABC, DEF, GHI], [ABC, DEF, GHI]] var messages = [[[a, a,], [b ,b ], [c ,c]], [[aa, aa,], [bb ,bb ], [cc ,cc]]] var time = [[[123, 456,], [789...
  12. Power_terminated

    Java HELP - Beginner Uni project

    I am trying to make a grid where I have 3 different coloured squares the weeds being limited to 7 and the farmer being just 1 square. The rest of the grid is supposed to be green where there is not any of these other 2 blocks. Eventually I will have to use the collide(); in order for the...
  13. W

    HTML & CSS HTML/CSS - Multiple images in carousel slide show

    I'm trying to create a slideshow that shows 4 images at a time, and then you can click arrows on the left and right to go to the next set of images. When I attempt to open my html file in google chrome, all the images stack on top of each other vertically instead of horizontally and my arrows...
  14. J

    JavaScript How to create a dynamic live counter

    I'm trying to create a dynamic live counter. The counter needs to: have some text before and after. change live. stay between 1 and 10. change only by ±1. have 2 to 10 second intervals between each update (Random but no longer than 10 and no less than 2 seconds between each update). if...
  15. D

    JavaScript How to Make an Element Disappear from the Screen Without It Glitching?

    So, I attempted three different ways to make an element disappear completely from the screen (displayed in the code below). Whenever I refresh the page, for each solution I tried, it has a glitch of some sort. By glitch, I mean, when I refresh the site, it shows the original text and quickly...
  16. tpylkas

    HTML I have a fake restaurant order form that wont work

    Your supposed to be able to click process and have all the information in the summary variable output to the textarea but it won't work, the clear button wont work either, I'm assuming its the form or the javascript that's causing the problem. Any help would be greatly appreciated, THANK YOU...
  17. WolfTech77

    JavaScript HTML5 Canvas - Drag and Drop

    Hello! I am attempting to create an HTML5 Canvas with Drag and Drop. I got the dragging to work, but I would like to be able to drop my three objects in a box, then click a "Check" button which will show "correct" or "incorrect" depending the order in which they were dropped. I'm also...
  18. D

    JavaScript Is there anyway to make this work?

    Got a question for you. Is it possible to run a line of code, which will have the same outcome, if the host has disabled/modified it? So here's where I'm stuck: I attended Minecon back in 2015 (cringe ik) and I'm trying to force-apply this link that was issued out after the event finished (it...
  19. bas.3625

    HTML & CSS Help needed on server.

    hey, we're a coding community server for supportl, currently focussing on html, css and javascript. We need people who ar good at coding in our server to help others, since there's a lot of people with questions. we have a pretty active discord with over 120 members and we're growing pretty...
  20. Alien10

    PHP HTML form redirecting when it is not meant to

    I know how to use stripe now, but when I am integrating it into my website, the form takes me to index.php. Here is my code for my checkout.php: <?php session_start(); if (!isset($_SESSION['letin'])) { header('Location: index.php'); exit(); } else { if...
Top