Comments (22)
can you list your root (public) directory structure?
from cjax.
I dont know exactly what you mean, but let me try to explain:
I extracted both CI 3.x and cjax-5.9-RC files into a folder called 'website'. This folder lies in (is a sub-directory of) 'htdocs' which is the root directory of Apache web server which I am using. I then pointed the browser to:
http://127.0.0.1:8080/website/ajax.php?test/test
I have also noted that as soon as I do this test, the directory cjax is automatically deleted! I have tested multiple times.
from cjax.
I see. I know what the problem is, and there is more than one way to address this problem.
I would like to try the way that can get me more information as of why this happened, if you don't mind. Can you tell me what ajax.php looks like (code)?
from cjax.
You mean the content of the file, ajax.php? Here it is.
ajax.php.pdf
from cjax.
I see. I would love to be able to test on your setup, so that I can resolve this issue for others that maybe have the same configuration you have.
The issue is that , cjax cannot fine the core directory from URL, it finds it fine in the file system, but locating it in the URL can be tricky some times.
I will give you an example, this is what the path looks like when using the demos on the cjax site:
../../application/libraries/cjax/core/js/cjax.min.js
Cjax is trying to determine the path of the js file. It appears for some reason it can't determined.
Please follow the instructions in this manual to fix the issue:
http://cjax.sourceforge.net/examples/docs/Iniciating_the_JavaScript_Engine.php
from cjax.
PS: You will want to follow the last option, the one where you edit your config file, the others wont work for you.
from cjax.
Please let me know if this has worked for you, and if it would be possible to debug the original problem further.
from cjax.
Sorry I will take you back a little. I have retested the installation patiently and this is what I have realised.
1. as soon as I point the browser to http://127.0.0.1:8080/website/ajax.php?test/test, I get the error message
"Cannot find the correct path to Js directory."
- After this, I give the browser some time (to clear it cache). when I point to http://127.0.0.1:8080/website/ajax.php?test/test, I now get a blank page. But when I press F12 (Firefox), I see the console message
"http://127.0.0.1:8080/website/application/libraries/cjax/core/js/cjax.min.js [HTTP/1.1 403 Forbidden 1ms]" - I edit the the following line in the .htacces file in the /website/application/libraries/cjax/core/js/ directory as follows
--- original ---
#RewriteRule ^/?(cjax._js)$ $1 [NC,QSA,L]
--- after editing ---
RewriteRule ^/?(cjax._js)$ $1 [NC,QSA,L]
- No matter how many times I try now, the console remains with the message
"http://127.0.0.1:8080/website/application/libraries/cjax/core/js/cjax.min.js [HTTP/1.1 403 Forbidden 1ms]"
from cjax.
Try, adding "Options +Indexes" on top of the htaccess file,
the rewrite rule is irrelevant to this problem
from cjax.
I added
"Options +Indexes"
as the first non-comment line in .htaccess file
The console message does not change
from cjax.
are you able to use https://www.join.me ?
from cjax.
ps: no quotes in the Options +Indexes
can you also check the file's permission is 755? I haven't had issues with permissions ever but since this install involved moving files, it might be different.
from cjax.
Oh yes, I had not include quotes.
I have just restarted the computer for a non-related issue. Then when I test I now see a pictures with the words
"Put your shades on, and get ready to run this test:
Run Test"
and the console has no message!
I click the "Run Test" link and I now get a blank screen with the console again screaming with the same message as before:
"http://127.0.0.1:8080/website/application/libraries/cjax/core/js/cjax.min.js [HTTP/1.1 403 Forbidden 1ms]"
Therefore it seems that after something (I don't know what),
http://127.0.0.1:8080/examsystem/ajax.php?test/test
is now OK but
http://127.0.0.1:8080/examsystem/ajax.php?test/test2
has the same problem that
http://127.0.0.1:8080/examsystem/ajax.php?test/test
had before.
The "Options +Indexes" has no effect at all it seems. I have removed and I don't see any change.
from cjax.
I have released Cjax v 5.9 RC 3, Please download and try that one, which does not move the Cjax directory.
https://github.com/ajaxboy/cjax/archive/5.9rc3.zip
from cjax.
I am running on PHP Version 5.5.30.
phpinfo.pdf
I am just about to test the 5.9rc3, will let you know as soon as I finish.
from cjax.
Just tested here is the sequence of apparent events
- blank page, console: http://127.0.0.1:8080/website/ajax.php - [HTTP/1.0 404 Not Found 7ms]
- I persist with page refresh/reload and get the screen
, console: no element found - mod_pagespeed_beacon:1:1 - I click "Run Test" and get the screen
- I click "Continue" and get the screen
from cjax.
To get rid of the error, open ajax.php just remove 'AJAX_VIEW' from line 44.
Then re-run the test.
Report back.
from cjax.
https://github.com/ajaxboy/cjax/archive/5.9rc3b.zip already removes AJAX_VIEW, you should be able to just install this one and run the test, without making changes.
from cjax.
Just tested, without line 44. here is the sequence
- blank page, no console: blank
~ repeated reload/refresh - blank page, console: http://127.0.0.1:8080/website/ajax.php - [HTTP/1.0 404 Not Found 7ms]
~ one refresh - blank page, no console: blank
~ repeated reload/refresh - blank page, console: http://127.0.0.1:8080/website/ajax.php - [HTTP/1.0 404 Not Found 7ms]
~ one refresh - blank page, no console: blank
~ repeated reload/refresh - I get the screen
console: console: no element found - mod_pagespeed_beacon:1:1
~ one refresh - I get the screen
So it installs, but it still seem to have issues. The console is still spewing a few messages.
from cjax.
It appears to be working, what you may have encountered an issue with is the new spin plugin, which is being used on the test page: http://cjax.sourceforge.net/examples/spin.php
Try the other demos and see, if it works or you continue getting these messages.
from cjax.
Will test cjax-5.9rc3b and report back. Thanks so much for the hard work.
from cjax.
I installed it well. The console messages are there but I can live with those.
from cjax.
Related Issues (20)
- Update Examples format HOT 1
- Turn examples into HTML5 HOT 3
- overlay not working in cjax-5.9rc3b HOT 9
- Manipulating Properties not working in cjax-5.9-RC4 HOT 6
- Installing cjax-5.9-RC5 HOT 14
- Installing Problem HOT 19
- Overlay + Tab Support? HOT 3
- Installing inside PHPBack HOT 3
- Conflict with CI Session library HOT 6
- Installing cjax-5.9-RC8 HOT 4
- Multiple issue during install - is script still up to date ? HOT 4
- ../cjax.js file not found error message HOT 2
- after successfull installation not working HOT 1
- bind new bottons HOT 3
- JQuery version HOT 1
- Refused to set unsafe header "Content-length" Refused to set unsafe header "Connection" HOT 3
- how to call a method from... HOT 2
- call a php function from inside class->method
- is it possible to write the controllers path on the ajax call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cjax.