Stack Exchange
log in
users (8)
rooms (11)
faq
Riyenz
general
recent
conversations
Discussion between Mirza Chilman and
…
Imported from a comment discussion on
stackoverflow.com/questi...
Riyenz
Oct 23, 2017 09:42
hahaha. Goodluck bro and have a nice day. just ask if you need help
Riyenz
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
Riyenz
Oct 23, 2017 09:39
yeah its a good practice if ur using codeigniter
Riyenz
Oct 23, 2017 09:34
HAHAHA
Riyenz
Oct 23, 2017 09:30
tell me if you encounter any problems
Riyenz
Oct 23, 2017 09:21
form :_
Riyenz
Oct 23, 2017 09:21
Ill reply an answer :D
Riyenz
Oct 23, 2017 09:20
only the html
Riyenz
Oct 23, 2017 09:19
nope you dont need to change most
Riyenz
Oct 23, 2017 09:17
yes you can use form post
Riyenz
Oct 23, 2017 09:16
thats why your page appends
Riyenz
Oct 23, 2017 09:16
is being executed again
Riyenz
Oct 23, 2017 09:16
$this->load->view('dashboard/kategori_project/list_data',$data);
Riyenz
Oct 23, 2017 09:16
then
Riyenz
Oct 23, 2017 09:16
list_data is called
Riyenz
Oct 23, 2017 09:16
when you request the ajax
Riyenz
Oct 23, 2017 09:16
now i see why
Riyenz
Oct 23, 2017 09:12
not public function list_data_project
Riyenz
Oct 23, 2017 09:12
i mean
public function list_data()
Riyenz
Oct 23, 2017 09:12
may i see your public function index()
Riyenz
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
Riyenz
Oct 23, 2017 09:11
have you seen my response?
Riyenz
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()
Riyenz
Oct 23, 2017 09:10
also with that
Riyenz
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()
Riyenz
Oct 23, 2017 09:05
in your controller
Riyenz
Oct 23, 2017 09:05
yes
Riyenz
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.
Riyenz
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?
Riyenz
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, ...
3
Riyenz
Oct 19, 2017 01:12
lol