![]() |
Ajax Framework (CJAX) for Codeigniter 2.x+ - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Ajax Framework (CJAX) for Codeigniter 2.x+ (/showthread.php?tid=51317) |
Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]XatroX[/eluser] [quote author="Ajaxboy" date="1340366974"]Okay thanks, AJAX_VIEW Constant allows you to view the response on the browser, if AJAX_VIEW is not defined, for security reasons it will not show the response on the browser, so 'AJAX_VIEW' is optional, Though in this package comes as 'on' by default, but there is a small typo on the definition. In file ajax.php line 34, change: defined('AJAX_VIEW', 1); to: define('AJAX_VIEW', 1); (remove the extra d), This is a typo/ bug. Please change it, it will come as changed by next release. -cj[/quote] ok, , ,thanks dude ![]() Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]XatroX[/eluser] Code: <?php echo $this->session->flashdata('message'); ?> I use that script on my view, but nothing happen. Did i make any mistakes?? *sorry if i repeat asking to you, i still newbie in CI and this plugins Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]Ajaxboy[/eluser] You are using $ajax->init(); wrong. You'd need to echo the init() function within the head tag. please see: http://cjax.sourceforge.net/docs/Iniciating_the_JavaScript_Engine.php Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]XatroX[/eluser] [quote author="Ajaxboy" date="1340375353"]You are using $ajax->init(); wrong. You'd need to echo the init() function within the head tag. please see: http://cjax.sourceforge.net/docs/Iniciating_the_JavaScript_Engine.php[/quote] thanks again dude..this framework are very helpfull for me ![]() Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]XatroX[/eluser] Code: <?php I get the problem again. I use that code, but if i click the button, nothing happen Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]Ajaxboy[/eluser] within your html head tag you have to do: Code: <head> As it is stated in the docs. You are not echoing it. Instead of: Code: $ajax->init(); do: Code: echo $ajax->init(); Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]Ajaxboy[/eluser] You might want to download the samples so that you can mimic the code used: http://sourceforge.net/projects/cjax/files/Demos/ Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]fliu[/eluser] hi ajaxboy, i tried to install the framework, but getting following error ************ Message: Undefined property: empty_controller_test::$load Filename: response/test.php Line Number: 8 ********** please help me out, thank you. Frank Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]Ajaxboy[/eluser] Hello fliu, What version of php are using? and also, what url are using testing it against? Ajax Framework (CJAX) for Codeigniter 2.x+ - El Forum - 06-22-2012 [eluser]fliu[/eluser] php 5.3.8 testing it on my local environment by http://localhost/project/ajax.php?test/test thanks Frank |