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

[eluser]Ayman Elarian[/eluser]
Hello ajaxboy

thanks for your perfect FW but after Finnish my work on my mac with chrome , i upload it to windows 2003 server with php 5.3.6
no response came its blank , it seem that your ajax.php dont load custom codeigniter controllers

how to fix that ?

[eluser]Ajaxboy[/eluser]
Assuming you are using the latest version 5.0, Could you debug with firebug?, use the console "all" to see possible response errors and also the "Net" tab to see possible loading errors.

Additionally, you might want to turn errors on php, so if it happens to be a php error, then you'll be able to see it.

Since this is an older thread be sure to reply on the newer thread for 5.0: http://ellislab.com/forums/viewthread/220312/

Also,

Is important to note that Zend has officially dumped Windows 2003 and XP, future versions of php won't work on these platforms.

[eluser]mmmx[/eluser]
Is there a way to config ajaxfw so that /cjax folder is out of public_html folder?

I use to put system and application folder out of the public www html folder, but I can't guess how to put there also cjax folder

Does anyone can help me?
Thanks

[eluser]Ajaxboy[/eluser]
Some of the files need public access/accessible through the browser such as the Javascript library, css, images, and ajax controllers. If it was only php files that would make more sense.

[eluser]zgames[/eluser]
hey,

after installing i18n(tutorial) i runed into a problem


I'm forcing language tag e.g localhost/root/en

so when I want to access localhost/root/en/ajax.php?test/test2

I get page not found.

when I remove library i18n everything works as expected e.g localhost/root/ajax.php?test/test2

how can I make it work with en tags?

where should I look for a problem

[eluser]Ajaxboy[/eluser]
I have not really played around with i18n, so I couldn't give you an answer why is it not working properly while using it is enabled. Maybe try to turn it off if it is an ajax controller? it would have to allow being turned off, i haven't mess with it.

[eluser]Cgull[/eluser]
Hi,

A bit confused with CJAX need help.

I would like to upload files with AJAX.

I downloaded the latest version of CJAX: AJAXFW_4CI_5.3-Obama2012.zip and read the installation instructions:
Quote:2. Place the contents of the zip on the root of the site merging it with your current site.
So you'd end up with your current structure plus:

/
cjax/
controllers/
ajax.php
testing.php

In the folder I extracted I have:
application/
cjax/
ajax.php
ajaxfw.php
examples.html
htaccess.txt

So first question is how do I install, I don't see a controllers folder and I don't see a testing.php file?

Then I downloaded the latest examples, but looking at the upload example I see this:
Quote: This controller is deprecated.
* The upload functionality has been re-written, please look at the API documentation referencing $ajax->upload()
* for more info. For new location of the upload code see cjax/core/file/iframe.php
going to cjax/core/files/iframe.php I get a google search page not sure where do I find an example.

So second question is where can I find a working example of how to upload files with ajax.

Thank you.

[eluser]bielco[/eluser]
In the folder I extracted I have:
application/
cjax/
ajax.php
ajaxfw.php
examples.html
htaccess.txt

So first question is how do I install, I don't see a controllers folder and I don't see a testing.php file?

=================================

I had indeed the same problem, the install documents are very vague, and they always assume you install your framework in the website root.

But despite, i always install the framework OUTSIDE the website root.
Because of that i seem not to get it working.

So i copied the controller, responds and views to the application, and i copied the cjax folder to the public dir (which is my web-root) and i copied ajax.php and ajaxfw.php to the website root (which is public dir as you know in meanwhile).

Ofcourse i had to change ajax.php so application and system-folder where pointing to the right path on my server.

Then i tried to run http://mywebsite.com/ajax.php/test/test

The result is a nice white screen, with nothing in head and nothing in the body.

So anybody any idea how i can make this work ?

[eluser]bielco[/eluser]
i debugged a bit and it seems that

$controller = $ajax->input('controller');
if($controller) {
new ajax($controller);
}

The $controller is empty, hence why it does not load anything.
What can cause this ?

Btw i work with mod_rewrite, hence why my

$config['index_page'] = '';

is this.

[eluser]Ajaxboy[/eluser]
Look like you are following the wrong directions ( for a different version),

be sure to follow the correct instructions posted here: https://github.com/EllisLab/CodeIgniter/...odeIgniter




Theme © iAndrew 2016 - Forum software by © MyBB