Skip to content
Advertisement

Tag: ajax

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,

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

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

Advertisement