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. U

    JavaScript Konva collission doesn't stop dragging over element

    I am using Konva to drag and detect collision, that works, but what I want to do is prevent to be able to drag over an item when the collision has been detected, I am not able to. I know about: dragBoundFunc, but that works with absolute positioning and the haveIntersection works with the...
  2. strawbs89

    DJ QUE

    hi in short i'm trying to design a DJQUE where's DJ's can delete Songs ect so i have tested it out and all i'm getting is failed to get data please refresh all this when submitted from the form goes into a spreadsheet so the code Link: DJQUE HTML: <html> <head> <title> DJ Queue...
  3. H

    JavaScript JavaScript validates an invalid email

    Hello there! I have a form that I am validating using the Form Validtion API in JS. I would expect the email address 'hannibal@gmail' to be invalid. However, the API returnts that it is valid. Here is an example: <!DOCTYPE html> <html lang="en"> <head> </head> <body> <form...
  4. H

    JavaScript hi guys, i want other accordion items close when one item collapses. in other words only one item be open.

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> .container { width: 50%; } .accordionBtn { background-color: grey...
  5. T

    JavaScript Vanilla JavaScript Lazy Loading images & passing class to parent

    I have been tremendously struggling with a custom lazy load/parent class inheritance script I am trying to implement. I am trying to move away from jQuery to Vanilla JavaScript. I wrote a basic lazy load script which worked just fine, Codepen Link For That Here. I then began trying to expand...
  6. masood.designs

    JavaScript GIF Frame Extractor

    Hi, A few days back, I created this HTML with JavaScript to extract Frames from the GIF file. The code works well on some GIF files, but fails on others. Can you please refine the code so that it can extract the frames from every GIF...
  7. H

    JavaScript Set breakpoint on loading time

    Hello there! Sometimes, I want to locate a code that is changing a DOM element. For example, on Chrome I can set a breakpoint "On attribute modifications" for a specific DOM element, so the browser will break when such element has attribute modifications, and I can inspect the code. However...
  8. OGShdwz

    HTML & CSS Ideas For Gaming Website

    So this is a post where I do and I don't need help. I have been creating a website for my Programming 2 class using AI per his instructions, and it went well. The project has come to an end, but I still want to work on it because I find coding interesting. I have a couple questions that I want...
  9. OGShdwz

    Best Way To Learn HTML, CSS, and JavaScript?

    So I am currently using a website called CodeCademy to learn more coding skills, and it is kind of going good, I am just wondering are there any other ways to learn coding. Specifically HTML, CSS, and JavaScript? It doesn't have to be online, I just want to know the best way. I am mostly asking...
  10. OGShdwz

    ChatGPT and Coding Problems

    So since I don't personally use JavaScript, CSS, and HTML to make code, I had to use ChatGPT to write the code for me. I was coding this on Replit, as per the instructions I was given, but I ran into some problems with my website. I went to ChatGPT to help me, and many other AI Models, but they...
  11. H

    JavaScript Free memory of HTMLVideoElement

    Hello there! I have a page with a lot of videos, so memory is a concern. Because of that, I have implemented an Intersection Observer that removes the videos that are out of the viewport. This is the instruction: video.remove(); Where 'video' is an HTMLVideoElement. Will that instruction be...
  12. irfanjamal

    JavaScript How I can adjust the string output in JavaScript and give a sequence

    I need help, I am using Javascript code to detect Radios, TextInputs and Text Area fields and push the detetcted values from field to a sequence in a input field. I've given each field a id with sequence, name1, name2, name3, name4, name5, name6, name7, name8, name8, name10, and name11 and the...
  13. accol

    JavaScript Model validation error when using Fetch or Axios despite returning a status 200 in the backend?

    Thank you to anyone who reads and replies to this. I do not know what I'm doing wrong by this point. I've been trying to connect the React.js frontend to my ASP.NET Core backend. I've tried both Fetch and Axios and I've been getting the same error each time, however it doesn't make sense to me...
  14. H

    JavaScript Help me to auto replace and display image hosted in Google Drive

    I have an id "content", it contains many images Google Drive URLs. So, I have match all URLs and replace them with clickable link. Here is my code $(document).ready(function(){ function replace_content(content) { var exp_match =...
  15. W

    JavaScript How to set, and then update a Datetime updated field?

    Hi forum, I'm using Bootstrap studio 5.3 and currently have a form with 23 fields on it. It's a form a user can save progress on and come back to at a later time or date, so there is a "Date Updated" field that is a read only datetime picker. As of now, I can get the Date Updated field to...
  16. accol

    JavaScript How to animate input placeholder text shaking in React using Framer Motion

    Thank you for reading. I'm trying to figure out how to make each letter of the placeholder username and password text either shake or animate in a wavy motion, however if you type in words the placeholder would disappear and stop animating as typical. I was using Framer Motion & React: Wavy...
  17. JosiahMaybe

    Ubuntu code testing/debugging maybe

    Okay so I am trying to run/debug some libraries on Ubuntu. I can't get VS Code. I have code in Ruby (I can debug via "ruby name.rb"), Kotlin, Swift, and Javascript. I found some online compilers but there are limits to those and terms. I could probably just HTML page a JavaScript and debug that...
  18. Samantha Groves

    JavaScript HTML canvas isnt working properly(I cant draw anything on the screen)

    Hello I have this code and it is supposed to be a drawing app with the ability to choose between up to 3 colors: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Draw a picture</title> </head> <body> <script> let color = ""; let mouseDownVar = 0...
  19. Y

    JavaScript document.body.textContent with replace or replace all

    Hi Guys, Could you please help me to use document.body.textContent in console log on a website? For example I want to change this format of 4.500,00 to 4,500.00 or 4500.00? How is it possible in this way i.e on this site EuroDreams auf win2day - die Spieleseite der Österreichischen Lotterien|...
  20. D3x73r

    JavaScript Shopping cart problem -localstorage

    Hello guys, I cant find problem why my javascript isnt working. Problem is I think with localstorage, when I reload webpage content in cart-box should stay there but it only save first content-box that I added to cart, others disappear but their value like $ stay in total amount . And other...
Back
Top Bottom