Welcome Guest, Not a member yet? Register   Sign In
Ajax Framework (CJAX) for Codeigniter 2.x+
#61

[eluser]Ajaxboy[/eluser]
I see..

Okay do this..

Go in response/test.php, and change the name of the function 'test' to something else, eg: test1 or whatever (as long it is not called test).

Then try url: http://localhost/project/ajax.php?test/test1 (or whatever you named the function)


#62

[eluser]fliu[/eluser]
[quote author="Ajaxboy" date="1340379901"]I see..

Okay do this..

Go in response/test.php, and change the name of the function 'test' to something else, eg: test1 or whatever (as long it is not called test).

Then try url: http://localhost/project/ajax.php?test/test1 (or whatever you named the function)


[/quote]

changed the function name to "cjax4ci", but still getting the same error message. Sad

Frank
#63

[eluser]Ajaxboy[/eluser]
Okay..

Instead of "localhost" use 127.0.0.1. Some times cookies don't work with localhost. So try this instead:

Eg:

http://127.0.0.1/project/ajax.php?test/test
#64

[eluser]fliu[/eluser]
[quote author="fliu" date="1340380281"][quote author="Ajaxboy" date="1340379901"]I see..

Okay do this..

Go in response/test.php, and change the name of the function 'test' to something else, eg: test1 or whatever (as long it is not called test).

Then try url: http://localhost/project/ajax.php?test/test1 (or whatever you named the function)


[/quote]

changed the function name to "cjax4ci", but still getting the same error message. Sad

Frank[/quote]

for some reason, i used the sample test controller, past "1,2,3" parameters, displayed the number on the page with no problem.

Frank
#65

[eluser]fliu[/eluser]
[quote author="Ajaxboy" date="1340380576"]Okay..

Instead of "localhost" use 127.0.0.1. Some times cookies don't work with localhost. So try this instead:

Eg:

http://127.0.0.1/project/ajax.php?test/test[/quote]

tried, but same error message.

Frank
#66

[eluser]fliu[/eluser]
[quote author="fliu" date="1340380702"][quote author="Ajaxboy" date="1340380576"]Okay..

Instead of "localhost" use 127.0.0.1. Some times cookies don't work with localhost. So try this instead:

Eg:

http://127.0.0.1/project/ajax.php?test/test[/quote]

tried, but same error message.

Frank[/quote]

call stack error message:


Fatal error: Call to a member function view() on a non-object in C:\wamp\www\CodeIgniter\application\response\test.php on line 8
Call Stack
# Time Memory Function Location
1 0.0007 393368 {main}( ) ..\ajax.php:0
2 0.0022 466928 require_once( 'C:\wamp\www\CodeIgniter\system\core\CodeIgniter.php' ) ..\ajax.php:240
3 0.0230 1376424 call_user_func_array ( ) ..\CodeIgniter.php:359
4 0.0230 1376472 AjaxController->main( ) ..\CodeIgniter.php:359
5 0.0236 1432680 require_once( 'C:\wamp\www\CodeIgniter\ajaxfw.php' ) ..\AjaxController.php:8
6 0.0377 2246864 ajax->ajax( ) ..\ajaxfw.php:153
7 0.0393 2258088 call_user_func_array ( ) ..\ajaxfw.php:140
8 0.0394 2258320 controller_test->test( ) ..\ajaxfw.php:140

hope this help... thank you

Frank
#67

[eluser]MonsterTKE[/eluser]
[quote author="Ajaxboy" date="1340352705"]Hello Monster,

It appears you have an error in the url you are passing two different operators/marks within the URL. Try removing the extra slash (or the question mark) - either one. One of them it's being interpreted for being part of the controller.

Change

from: ajax.php?/test/test

to: ajax.php?test/test

or: ajax.php/test/test

please try that for me

-cj[/quote]

Hmm, thats not working either, this is my .htaccess file, my site is in /var/www.

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
RewriteRule ^/?ajax/(.*)$ ajax.php?$1 [NC,QSA,L]

I really hope I can get this working this plugin looks awesome. AJAX ALL THE THINGS!!!!

#68

[eluser]Ajaxboy[/eluser]
Ok .. which version of codeIgnater are you guys using? haven't sync with the latest CI version recently released last week.
#69

[eluser]fliu[/eluser]
[quote author="Ajaxboy" date="1340381456"]Ok .. which version of codeIgnater are you guys using? haven't sync with the latest CI version recently released last week.[/quote]

i am using ci 2.1.0

Frank
#70

[eluser]MonsterTKE[/eluser]
[quote author="Ajaxboy" date="1340381456"]Ok .. which version of codeIgnater are you guys using? haven't sync with the latest CI version recently released last week.[/quote]

Yeah, Im using 2.1.0, from the download link, not git.




Theme © iAndrew 2016 - Forum software by © MyBB