Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

javascript

  1. J

    JavaScript Can someone pls help me with a little algorithm script

    hey there community, just signed up because i’m trying all day to create a script in HTML/JS with ChatGPT. It works quite a bit already but can’t tune it the way I need it. here is what I’m trying to create, a text generator which follows these rules: -the string (Z) persists of a 3 random...
  2. onur_super_ai

    JavaScript Google drive pictures are not showed in website

    Hello, I am new to javascript coding. I am displaying the table in the google sheet on the web with js. It pulls the data properly, but my pictures in google drive cannot be displayed properly in the last column in the table. When I get a link to any image on the internet, the image appears, but...
  3. R

    Using PHP to convert JSON string to JS Object

    Friends, I'm very new to this stuff, so please ignore any mistakes I might make, but I would really appreciate some help here. I'm sending out a very simple form post to: https://click2call.aosystemsgroup.com/wcb.php?i=1 which works great. I would like to convert the returned JSON, which is...
  4. Malcolm

    Using loops

    Basic understanding of loops and how they work This tutorial will cover loops and how they work. Although this tutorial will be using JavaScript as the code example, the same principal should work with other languages. Loops can be used to perform a variety of tasks such as looping through...
  5. H

    JavaScript Break on input value changes

    Hello everyone! I want to know if it is possible to set a breakpoint, using the browser, when the value of an input field changes. In Chrome, I can set a breakpoint on a DOM element in these scenarios: Subtree modifications Attributes modifications Node Removal I need a similar way to...
  6. H

    JavaScript Check if input can be focused

    Hello everyone! I want to know if there is a way to check if an input is focusable or not via JavaScript. I am implementing a form, and when the user hits the enter key, the focus should go to the next "focusable" input via JavaScript. The problem is that some inputs are hidden via...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. IMMaximum

    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...
  15. IMMaximum

    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...
  16. IMMaximum

    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...
  17. 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...
  18. 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...
  19. 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...
  20. 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 =...
Back
Top Bottom