Welcome Guest, Not a member yet? Register   Sign In
AjaxFw (CJAX) For CodeIgnater 5.0 Stable
#11

[eluser]Simple Focus[/eluser]
Thanks so much!
#12

[eluser]Simple Focus[/eluser]
.
#13

[eluser]Ajaxboy[/eluser]
That is only in the examples, it is file examples/ajax.php, it should not apply outside the examples.


#14

[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.
#15

[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")Wink;
?>
<a id='anchor1' href='#'>Anchor 1</a>


I get the following error alert
Controller Method/Function: test::ajax() was not found
#16

[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.
#17

[eluser]Ajaxboy[/eluser]
1. from where are you firing it?.

2. do you have mod-rewire enabled?
#18

[eluser]somenet[/eluser]
When i used
response/alert.php

&lt;?php

class controller_alert {


function fire_alert($message)
{

$ajax = ajax();

$ajax->alert($message);
}
}

//view file

[removed][removed]
&lt;?php
$ajax = ajax();
$ajax->Exec(“anchor1”,$ajax->call(base_url().“ajax/alert/fire_alert/Hello”));
?&gt;
Anchor 1


yes i have enable the mod_rewrite
i get the loading but i don't get the hello message.
#19

[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/



#20

[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'));
This is what I get in the second step:

Code:
A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant JSON_FORCE_OBJECT - assumed 'JSON_FORCE_OBJECT'

Filename: classes/core.class.php

Line Number: 746
A PHP Error was encountered

Severity: Warning

Message: json_encode() expects exactly 1 parameter, 2 given

Filename: classes/core.class.php

Line Number: 746




Theme © iAndrew 2016 - Forum software by © MyBB