Ajax Framework (CJAX) for Codeigniter 2.x+ |
[eluser]rafabkn[/eluser]
Running this: 'http://localhost/test/ajax.php?sample/test/1/2/3' from this code: Code: class controller_sample extends CI_Controller { gives this output: Code: ajax:
[eluser]rafabkn[/eluser]
If I uncomment the line: Code: class controller_sample extends CI_Controller { I get this server error: Code: PHP Fatal error: Call to undefined method CI_DB_mysql_driver::dm_call_method() in /var/www/html/test/application/libraries/datamapper.php on line 1024
[eluser]Ajaxboy[/eluser]
@rafabkn Update: I did some testing, and got a similar error: ( ! ) Fatal error: Call to undefined method CI_DB_mysql_driver::dm_call_method() in application\libraries\datamapper.php on line 1113 The error was there even when cjax wasn't present, this is was not a conflict with cjax, it was an actual error from DataMapper. This error is unrelated to the Ajax Framework, and has nothing todo with Cjax. I suggest maybe ask in DataMapper thread or to wanwizard to see if he can offer any insights. -cj
[eluser]rafabkn[/eluser]
Thank you very much for your help. I will try in a different way for using AJAX and DataMapper. Thank you very much for your time.
[eluser]ysh[/eluser]
hello Ajaxboy, thanks a lot for the library,...starting with the library.
[eluser]Simple Focus[/eluser]
Hi, I was hoping someone that has used this framework successfully can help me troubleshoot an issue. I am trying to get CJAX to work and get 500 Internal Server errors with anything that uses the framework. This includes the default out-of-the-box request that the instruction page says should work http://www.domain.com/ajax.php?test/test, as well as any of the example files. I have tried the following on both a local server and a production server to rule out local problems: 1. I downloaded the latest Codeigniter package (2.1.2) and got it successfully working. 2. I installed the framework (5.0 Stable) as directed on the instructions page (basically just copied the files to the server). I have done nothing else to the Codeigniter installation. I tried both with no .htaccess file and renaming the htaccess.txt to .htaccess. Does anyone know what would cause the 500 errors? Was there something that I should have done to the default Codeigniter installation prior to attempting to install CJAX? Thanks for your help. Scotty Bollinger
[eluser]MonsterTKE[/eluser]
@Ajaxboy Is this library supposed to work on mobile devices? "process unable to load function#1: _overlay(); Cannot set property 'display' of undefined" Is the error I get on android. I am currently loading in separate views for mobile user agents, but I was wondering if there is something Im missing here?
[eluser]Ajaxboy[/eluser]
@MonsterTKE, There have no been tests on mobile devices because there has been not demand for it, but we might start testing on mobile devices in the near future.
[eluser]MonsterTKE[/eluser]
[quote author="Ajaxboy" date="1341554376"]@MonsterTKE, There have no been tests on mobile devices because there has been not demand for it, but we might start testing on mobile devices in the near future.[/quote] Yeah, I totally understand, I just write my views without ajax, then I copy and rename them to mobile_whateverView then I add the Ajax stuff to the existing controller for the desktop site. It is a pain in the ass to debug mobile sites. |
Welcome Guest, Not a member yet? Register Sign In |