AjaxFw (CJAX) For CodeIgnater 5.0 Stable |
[eluser]educator[/eluser]
I'd really like to get started with cjax but test (http://teacherlearner.com/ajax/ajax.php?test/test) return 404 Page not found. I am using cjax 5.1, CI 2.0.3, and PHP 5.3.6. Don't know what file cannot be found. Can you help?
[eluser]Ajaxboy[/eluser]
@salvomil, Cjax 5.2 is now available for download. The mentioned changes have been applied, I also tested the plugin above and worked with success. I kindly ask that you please leave a small review or at least like it on the page mentioned above, thank you. @educator, In what directory did you place Cjax?. there area 2 possible problems here that I can think of. 1. the files have been misplaced? 2. htaccess or mod-rewrite issue?. Other than that I wouldn't know what is wrong on your server, make sure that the package is installed correctly. If your codeignater installation is under http://teacherlearner.com/. then you will need to remove the extra /ajax/ part of the url and keep it as: http://teacherlearner.com/ajax.php?test/test. Make sure Cjax is placed on the root directory where CodeIgnater resides. -Ajaxboy
[eluser]salvomil[/eluser]
Thank you!!! I liked it in the page you mentioned because you ara worthy of this job. A simple question if I may.... when I try to create an overlay I get the following error: #process unabled to load function #1: _overlay(); Cannot set property 'display' of undefined, the code is the following: $overlay = $ajax->overlay("$base_url/admin/cisl_controller/contatti/"); $ajax->click('#contattiButton', $overlay);
[eluser]educator[/eluser]
Ajaxboy, Thanks for your reply. I have a couple of apps running under teacherlearner.com. I simply copied one into a folder called ajax and added the cjax scripts. The CI app works as expected: http://teacherlearner.com/ajax/index.php/home . The CI application folder is in the ajax folder. I can confirm that ajax.php launches CodeIgniter.php but have not been able to find out what file is missing according to the 404. Any suggestions on how to debug this? Is there a problem with using ajax as the root folder name? Jim
[eluser]Ajaxboy[/eluser]
@salvomil, What browser are you using, I am aware of some issues with Internet Explorer, please see this post: http://ajaxboy.com/articles/ajaxfw-initi...e-browser/ If you give me more specifics I might look into it, but I really don't look forward to mess around with Internet Explorer , sorry. @educator, Something is blocking the access to the files on ajax directory. It seems it could be a configuration error on your server with your .htaccess or mod-rewrite, (possibly the .htaccess from the upper directory taking jurisdiction over on the ajax directory). Note if you go to http://teacherlearner.com/ajax/index.php you also get a 404 error ( which shouldn't normally happen ). I'd check .htaccess files, check routing settings on your CI config or post your question on here http://ellislab.com/forums/viewforum/51/ because this isn't specifically a problem produced by the ajax framework, which means you would face the same issue with any files that request access to the ajax/ directory. -Ajaxboy
[eluser]salvomil[/eluser]
Ajaxboy, thanks for the quick replay. I use Chrome and Firefox browser and rarely IE.
[eluser]Ajaxboy[/eluser]
There are no currently known issues with the overlays on chrome or Firefox. Can you give more details? what browser specifically are you getting this error on? seems like a minor error could of been introduced on the 5.2 yesterday.
[eluser]salvomil[/eluser]
Well when I use Firefox (and not Chrome) I get a bit different message, maybe some information more useful: #process unabled to load function#1: _overLayContent(); CJAX.$("cjax_overlay").style is undefined It seems that css cannot be loaded, but whern I use messages (for example $ajax->success) I have no problems. I use the workaround [removed][removed] to init cjax.
[eluser]Ajaxboy[/eluser]
I see. That might be the issue. How are you initiating Cjax could be it. also looks like you got filtered and can't see what you posted there.
[eluser]salvomil[/eluser]
Sorry, I init so: Code: script id='cjax_lib' type='text/javascript' src="<?=base_url();?>cjax/core/js/cjax-5.1-Stable.min.js"> I removed < at begin and at end because the code is removed. |
Welcome Guest, Not a member yet? Register Sign In |