Skip to content
Advertisement

Tag: jquery

Checkboxes values

I’m trying to get the values of the checkboxes I check and put them in a php variable, but when I output that value, it gives me zeroes (0). If I check 3 boxes, I get three zeroes, etc. Info: I want every checkbox that is checked, so if cb1 and cb3 are checked, I want the variable to be

Live updating chart with data from database with Chart.js

I’ve been having some trouble with Chart.js. I’m making a voting system that I want to dynamically update for the user to see. Kind of like strawpoll websites. When the user submits a vote, the results page will automatically update to the new vote count. I’ve been searching for an answer to this, and I feel like I’ve gotten halfway.

How to pass a AJAX call on OctoberCMS

Im using OctoberCMS, the user plugin and I want to send data via AJAX to a controller and save the data in the database (in the column of the logged in user). So I created a new Route in my routes.php And a controller And my jQuery calls But nothing works. If I call /saveHighscore in my browser with dummy

Ajax gets as result whole page from php

I am trying to call php function using ajax. Ajax is called from php with onclick function in button. But instead of value, that the called function add_player returns, i get whole page exec.php. Thank you for your help. index.php javascript exec.php Answer I assume that somewhere, but not shown, index.php has … … surrounding the echo statements. If not,

Amateur trying to fix dropdown menu from SQL

I’m trying to help a friend with a website. I usually don’t work with PHP, jquery. The dropdown has 4 levels. The first level has 4 points. The 4 points have their own sub-levels, different for each other. I’m trying to find them and then make them display in a dropdown, directly from the database. And I’m stuck at the

Advertisement