Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

javascript

  1. John Weiss

    JavaScript Reg Exp Not Working With matchAll

    Trying to get all delimited items in a string. Here's the code: const myString = "abc{{HELLO}}defg{{WORLD}}" const templateFieldsRegex = /\{\{\w+\}\}/g const templateFields = myString.matchAll (templateFieldsRegex) I expect to get array ["{{HELLO}}", "{{WORLD}}"] Not getting any results. also...
  2. Dan001

    JavaScript Need your help 🤗 : How do I remove hand (pointer) cursor

    hello Is it possible to remove the hand cursor that appears when hovering over a link? 😊 Below my CSS et JS code and in attachment a image. I do not know where to change the code 🤗 I'm not at all an expert in coding. "cursor:none;" doesn't work thank you for your help 😊 <script> function...
  3. iimadouu

    JavaScript how to filter the json response coming from axios request?

    hello, im trying to filter and organize a Json response from axios.get, im requesting a soccer standings table i ve succeded in returning the data but is bit messy, im using node express, axios, and cheerio as you can see on my code below this is my code: const express = require('express')...
  4. Idle Commander - The Dev

    JavaScript Why is this not working [edit]

    I'm making an online free web game and I got to the point where I don't know how to fix a particular bug. What I'm confused about is that the thing I'm building works perfectly when you perform it the normal way but If you go on a quest in my game and fight a monster it breaks. If you want a...
  5. Idle Commander - The Dev

    JavaScript Why is this not working?

    I'm making an online free web game and I got to the point where I don't know how to fix a particular bug. What I'm confused about is that the thing I'm building works perfectly when you perform it the normal way but If you go on a quest in my game and fight a monster it breaks. If you want a...
  6. Kiyoshi99

    JavaScript Simple CSS/JS Tabs

    Hi, Im trying to use the following simple Tabs: https://jsfiddle.net/yw32rLuf/ Unfortunately, these tabs do not work for me, since they crash sometimes. Is there another way to achieve Tabs like these? Fix my Code so that it does not crash? Or even rewrite it completely to achieve this...
  7. ~prop

    JavaScript localStorage.setItem(); is considered undefined

    Hello. I have a problem with my code in JS. I am trying to make new user by reading the input prompt (first function) and saving it into the local storage (second function) but it doesn't seem to work, once I open the project in live server by Visual Studio Code and try to make new user, it...
  8. V

    JavaScript Why does console.log not work everywhere?

    Hello. Why do I only see in the console: jswrapper: JS: my debug network manager 1 jswrapper: JS: my debug network manager 2 And I don’t see: jswrapper: JS: my debug NetworkManager 3 jswrapper: JS: my debug NetworkManager 4 n.NetWorkManager = void 0; console.log("my debug...
  9. R

    How to animate an interactive mind map?

    Hey all Im a beginner with html/css but I am trying to create an interactive mind map and I'm not really sure where to begin with javascript for this something like the first link but the blue circles would only reveal on hover of the center orange circle. also Ideally some sort of animation...
  10. A

    JavaScript JavaScript play audio segment

    I need to call a script and specify 3 parameters, audio file ID, audio start time, audio end time (optional). With zero prior JS knowledge, I'm unable to get this script I stitched together to work flawlessly. The main bug now is that if EventListener is active and a segment is still playing...
  11. E

    Autoselect based on a condition

    Hi, I'm using a Chrome autofill extension. From this saved static page: https://spazioweb.w3spaces.com/reference.html I would like would be autoselected: "INTERNA" in "Circolazione" dropdown field, if user writes "REF." in "Sezione" This should be the "Circolazione" code block, thanks...
  12. jsmwrench

    NOOB assistance - send command from web page to Pi

    Hi all. I'm pretty much a NOOB to this, but I have dabbled in C++ and HTML/CSS and I've also programmed some Arduino projects. This project, however, is larger than my experience, but I believe I can get through this if I just take one step at a time. To explain my project as simply as possible...
  13. Idle Commander - The Dev

    JavaScript Why is my first test good then my second goes bonkers

    I have this battle game and the first time you click battle it goes really smooth and well and does everything needed but once I clicked the button again there is supposed to be a 3-4 second gap between all the attacks to each other but it does something like this (1 _ is a second an "at" is an...
  14. parvinder21

    Node.JS Error: Cannot find module 'puppeteer'

    const automation = require("puppeteer"); const fs = require("fs"); const automationConfiguration = { headless: false } async function runautomation() { const browser = await automation.launch(automationConfiguration) const page = await browser.newPage() const navigationPromise =...
  15. abidiziko99

    JavaScript Javascript / Node.js importing html file

    I'm making a node.js server which sends emails on demand. The variable "output" is what I want to send via email. When I use inline html it works fine, however I want to import a complete html file instead. const { EmailClient } = require("@azure/communication-email"); const connectionString =...
  16. abidiziko99

    JavaScript How to send bulk email using javascript by azure ACS

    How to send bulk email using javascript by Azure Communication Services const { EmailClient } = require("@azure/communication-email"); const connectionString = `endpoint=${endpoint}/;accesskey=xxxxxxxxxxxxxxxxxxxxxxx`; const client = new EmailClient(connectionString); const sender =...
  17. A

    JavaScript Closing a window outside as well

    Hi: I am opening a window and closing a window with style.width. I like to close the window with clicking on the body outside the window as well when the window is opened. In https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_modal it does. I am trying to achieve the same task...
  18. Idle Commander - The Dev

    JavaScript My code is not working

    Go to this link (there is too much code to paste). Gem Hunt 2 (inspect the page for HTML and css). and go to the quests tab and click on Fred the crafter speed through the obviously correct ones then when you get to “ALright I have unlocked it for you go craft a stoen furnace and come back.” and...
  19. E

    Autoclick print button goes into a loop

    Hi, could you help me please? From a Chrome extension I would like to autoclick on print confirmation ("button confirm"), but this script partially works, as the page refreshes endlessly in a loop. setTimeout(function() { labels = document.querySelectorAll('label'); if (labels[1].innerText...
  20. B

    JavaScript I couldn't solve the javascript questions. Can you help me?

    Question 1 : How to rewrite the method foo() const someText = 'some string'; function foo(){ if(someText.indexOf('string')!=-1){ return true } return false } a - someText.includes('string') b - someText.endsWith('string') c - someText.repeat(5) Question 2: In...
Back
Top Bottom