Oct 23, 2017 09:42
hahaha. Goodluck bro and have a nice day. just ask if you need help
Oct 23, 2017 09:41
you can use ajax for confirmation if the data is inserted then load a view to redirect to the main page after success
Oct 23, 2017 09:39
yeah its a good practice if ur using codeigniter
Oct 23, 2017 09:34
HAHAHA
Oct 23, 2017 09:30
tell me if you encounter any problems
Oct 23, 2017 09:21
form :_
Oct 23, 2017 09:21
Ill reply an answer :D
Oct 23, 2017 09:20
only the html
Oct 23, 2017 09:19
nope you dont need to change most
Oct 23, 2017 09:17
yes you can use form post
Oct 23, 2017 09:16
thats why your page appends
Oct 23, 2017 09:16
is being executed again
Oct 23, 2017 09:16
$this->load->view('dashboard/kategori_project/list_data',$data);
Oct 23, 2017 09:16
then
Oct 23, 2017 09:16
list_data is called
Oct 23, 2017 09:16
when you request the ajax
Oct 23, 2017 09:16
now i see why
Oct 23, 2017 09:12
not public function list_data_project
Oct 23, 2017 09:12
i mean
public function list_data()
Oct 23, 2017 09:12
may i see your public function index()
Oct 23, 2017 09:11
I have provided a shorter way so that you dont have to execute your query 12 times per year. only once
Oct 23, 2017 09:11
have you seen my response?
Oct 23, 2017 09:10
$data['januari'] = $this->dashboard_m->get_kategori_totals('01',$thn)->num_rows();
$data['februari'] = $this->dashboard_m->get_kategori_totals('02',$thn)->num_rows();
$data['maret'] = $this->dashboard_m->get_kategori_totals('03',$thn)->num_rows()
Oct 23, 2017 09:10
also with that
Oct 23, 2017 09:06
since your creating a html on your controller right? then pass it to the ajax call. to create new html on the #tableChart.html()
Oct 23, 2017 09:05
in your controller
Oct 23, 2017 09:05
yes
Oct 23, 2017 09:03
Perhaps you have $chartData .= $theHTML on your controller? sorry but i dont see anything wrong on your javascript and html.
Oct 23, 2017 09:03
lets say the default is 2017 and you chose 2016. what will happen if you choose another value again like 2017 or 2015?
Oct 23, 2017 09:03
can you show also your structure in html? specifically on where #tableChart is placed
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Oct 19, 2017 01:12
lol