Skip to content

Tag: html

HTML offsetLeft delays to change

I have four canvas in my screen, positioned two above and two below. Each one have a button that makes possible to maximize the canvas, hiding the others. This button is positioned above each canvas, with absolute position based on offsetTop and offsetLeft of the canvas. However, when I maximize or minimize a…

How select the previous option with jQuery?

I have a html page with a select element like this: And I’m using this simple function on the button OnClick to change the selected item to the next option item of the dropdown: My question is: How can i change the selected item to the previous option of this tag using Vanilla JavaScript or jQuery? Jsbi…

Menu not shown on mobile device

At this site, on a mobile device, there should be a button in the left upper corner to show the menu. But it will not show. The javascript file that’s necessary for this, is uploaded and accessible. I probably forgot something, but can’t find what… Answer Screenshot of console It looks like …

Fetch data from database in php through AJAX,

index.php First I create a connection with the database, I design table through <td> and <tr>, I create a variable $action to get data through AJAX. I use mysqli_fetch_array to fetch data from the database. Add.html view.js I fetch data from the database. I use the show_all() function after that I…

Recursively read a directories with a folder

I’ve been trying to request a recursively read a directory with fs module. I had problems along the way, its only giving me a file name. Here’s how I need it to be: File name. And also a directory of that file. This results may be as an object or bulked into an array. Anyone please help. Thanks. A…