ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Ajax Framework (CJAX) for Codeigniter 2.x+

April 29, 2012 11:33am

Subscribe [24]
  • #61 / Jun 22, 2012 11:45am

    Ajaxboy

    243 posts

    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 / Jun 22, 2012 11:51am

    fliu

    9 posts

    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)

    changed the function name to “cjax4ci”, but still getting the same error message. :(

    Frank

  • #63 / Jun 22, 2012 11:56am

    Ajaxboy

    243 posts

    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 / Jun 22, 2012 11:56am

    fliu

    9 posts

    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)

    changed the function name to “cjax4ci”, but still getting the same error message. :(

    Frank

    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 / Jun 22, 2012 11:58am

    fliu

    9 posts

    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

    tried, but same error message.

    Frank

  • #66 / Jun 22, 2012 12:01pm

    fliu

    9 posts

    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

    tried, but same error message.

    Frank

    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 / Jun 22, 2012 12:06pm

    MonsterTKE

    27 posts

    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

    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 / Jun 22, 2012 12:10pm

    Ajaxboy

    243 posts

    Ok .. which version of codeIgnater are you guys using? haven’t sync with the latest CI version recently released last week.

  • #69 / Jun 22, 2012 12:14pm

    fliu

    9 posts

    Ok .. which version of codeIgnater are you guys using? haven’t sync with the latest CI version recently released last week.

    i am using ci 2.1.0

    Frank

  • #70 / Jun 22, 2012 12:18pm

    MonsterTKE

    27 posts

    Ok .. which version of codeIgnater are you guys using? haven’t sync with the latest CI version recently released last week.

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

  • #71 / Jun 22, 2012 8:52pm

    Ajaxboy

    243 posts

    I am looking into the issues. In the mean time, you may work with RC1.

  • #72 / Jun 22, 2012 10:17pm

    MonsterTKE

    27 posts

    Ok, RC1 is giving me a blank screen at ajax.php?test/test and any other combination I try.

    view-source has zero output.

  • #73 / Jun 22, 2012 11:21pm

    Ajaxboy

    243 posts

    You are all welcome to join me in a conference call/chat on skype to discuss current issues you are experiencing with the ajax framework and go in depth with these matters and get them fixed, these fixes will also be merged to the next release.

    When: Saturday August 23 2012,
    Where: Anywhere in the world, through skype.
    What time:  3pm US, Central Time (1 pm Pacific, 4pm Eastern)
    Who: Anyone Interested.
    Price: Free
    Duration: 1 hour (or more if required)

    You may add me on your skype as:  ajaxboy21

    Main purpose of this conference is to get you running and optimize the performance of the framework to work for everyone.

    Please note that to address the issues more appropriately you may need to show your screen in Skype so that we can go deeper on the issues, if you are unable to do that I might not be able to help you.  You may use a microphone or you may also simply use the chat.

    Issues will be dealt with as first come first serve basis.

  • #74 / Jun 23, 2012 2:56pm

    MonsterTKE

    27 posts

    Let me just reset my Skype password, considering I havent used it in about 10 months o.O

  • #75 / Jun 23, 2012 3:01pm

    MonsterTKE

    27 posts

    Ahh lol… central time. pssh.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases