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
Tag: ajax
File isn’t recognized ERROR “Call to a member function store() on null” on Laravel file upload
I’m using Laravel, Ajax with Datatables to manage my info, everything was working fine but i need to upload files to it. But i’m getting Call to a member function store() on null. Here’s the code of …
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,
modal not working when use on click event
the button, use to click that pass direct to open in the modal modal section, after button clicked the modal suppose to open and show the data Jquery and ajax, i use on click event to get the id and pass then to the ajax in order to return data from a controller Note:- This cant open a modal after
How to send the value of jquery variable to PHP variable in an Array?
I’m pretty new to Jquery and PHP and I’m trying to get the values of checkboxes in a filter form and sending to php. I’d like to figure out how to store the PHP variable as an array of all the boxes checked. My form: Script: With all three boxes checked it is successfully showing the values in the console
How do I just run a php script with Ajax (no returns)
I’m trying to run a php script with ajax. All I want for it to do is just run the script, I don’t want any echos or anything. Is there a way to do this. Here is what I’ve tried: $(‘button’)[1]….
Dynamic dropdown Ajax PHP request
I’m trying to make a dynamically populated drop down in a form for location selection. I have scoured stack in other posts that ask similar questions and some websites but my second dropdown is always blank. The first dropdown is populated via a MySQL query. Form section Ajax request ajax_county.php Database.php Before the district is changed. After the district changed.
ajax select data with multiple related data
i want to show checkbox looping from db, if i try to select data id_kendaraan in field then show the data from that id. this my view code: my controller: i get data from view $id_kendaraan for my parameter. this my model: but if i try this code, field tahun_beli, id jenis is success to showing in the view. but
How can we fetch data from database in PHP using ajax and display in value of input type?
I am working with two forms where if user submitted first form the data is inserted using ajax to database and user is redirected to second form(Both Forms are in same file). When user which is present on second form presses back button the value on the input type text for form1 one to be fetched from db which is