Currently, I have a PHP app running on Heroku using a Postgresql database. I want my users to be able to upload an image to a folder on my dropbox, and store other information (in this case, product information such as price, title, weight, location of the image on dropbox) on my database. Right now, I’m using a file input
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
Using the HTML Select tag to switch between languages in a multilingual website
Before I have a website that i built to switch from English to Dutch just by clicking on a hyperlink i.e <a> I had 2 files; de.php and en.php with following structures; de.php en.php To load a specific language. User only has to click on the hyperlink index.php Now, there’s need for me to add other languages such as french,
how to set value to specific object of array object in javasript
I have to write inputbox inner a looping statement. let say I have 3 times loop the question is, how to set every value I type in inputbox only settbthe result inner span from its row index only Answer You might have more luck trying an approach like this. Remove the ID attributes from the elements – you can replace
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.
jquery $.get() adding slashes not saving edits even after slashes removed
I have created a simple css editing/optimizing system in a wordpress plugin. Basically, the css files are stored in a folder. They are accessed to edit though a selection box using jquery. HTML # edit …
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
Tap and Tap Hold Action not working in Mobile Phone / Firefox Mobile Tester
I am trying to change the opacity of an element on mousetap or hold in shopify but it doesn’t seem to work. I have added prevent default as the grid-product__link is a link <a href="url" …
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