AjaxFw (CJAX) For CodeIgnater 5.0 Stable |
[eluser]Ajaxboy[/eluser]
That is only in the examples, it is file examples/ajax.php, it should not apply outside the examples.
[eluser]somenet[/eluser]
$ajax->Exec("button1",$ajax->call("ajax.php?confirm/confirm_action",null,"Are you sure?")); where to put this code either view or controller file? if we put in the view file please demostrate in view file.
[eluser]somenet[/eluser]
When i used response/alert.php <?php class controller_alert { function fire_alert($message) { $ajax = ajax(); $ajax->alert($message); } } //view file [removed][removed] <?php $ajax = ajax(); $ajax->Exec("anchor1",$ajax->call("ajax/alert/fire_alert/Hello") ![]() ?> <a id='anchor1' href='#'>Anchor 1</a> I get the following error alert Controller Method/Function: test::ajax() was not found
[eluser]Ajaxboy[/eluser]
[quote author="somenet" date="1341643021"]$ajax->Exec("button1",$ajax->call("ajax.php?confirm/confirm_action",null,"Are you sure?")); where to put this code either view or controller file? if we put in the view file please demostrate in view file.[/quote] Preferably in the controller.
[eluser]Ajaxboy[/eluser]
1. from where are you firing it?. 2. do you have mod-rewire enabled?
[eluser]somenet[/eluser]
When i used response/alert.php <?php class controller_alert { function fire_alert($message) { $ajax = ajax(); $ajax->alert($message); } } //view file [removed][removed] <?php $ajax = ajax(); $ajax->Exec(“anchor1”,$ajax->call(base_url().“ajax/alert/fire_alert/Hello”)); ?> Anchor 1 yes i have enable the mod_rewrite i get the loading but i don't get the hello message.
[eluser]Ajaxboy[/eluser]
edit: are you Echoing $ajax->init() on the head tag? For your other questions, the are better answer here: http://ajaxboy.com/2012/07/how-not-to-us...uld-avoid/
[eluser]AntonioJCanto[/eluser]
Hello, this is my very first day "playing" with CJAX and I am having a lot of troubles. I have solved most of them, but now, I am trying to pass the installation test and it breaks at "view2". It gives me this error multiple times. How can I fix it? I already changed to Code: call_user_func(array($class,'autoload')); Code: A PHP Error was encountered |
Welcome Guest, Not a member yet? Register Sign In |