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

[eluser]Ajaxboy[/eluser]
New Release

AJAXFW_4CI_5.0-RC1
Maintenance Release
Jun 05, 2012

* Fix minor things and improved minor things
* Added the ability to control/change/set ANY element's properties through Ajax.
* Some docs were released
* Moved to http://cjax.sourceforce.net
* Support for all elements JavaScript properties in PHP
See - http://cjax.sourceforge.net/docs/manipul...tainer.php

Download
https://sourceforge.net/projects/cjax/fi...deIgnater/

Plugins
https://sourceforge.net/projects/cjax/files/Plugins/

ChangeLog
http://cjax.svn.sourceforge.net/viewvc/c...iew=markup

This release takes us out of the beta release and all most changes in the beta turned out very stable. This new release Introduces some powerful functionality in regard to controlling HTML Elements through PHP.

#42

[eluser]Ajaxboy[/eluser]
New Version Released
5.0-RC2

Some highlights:
This release Fixes most of all IE issues. Extends the JavaScript Api - you now have access to ALL Js functions and Objects on the page. Adds speed to the overall framework - and to plugins, and provides options that can be used for easier development, it also adds an alternative to the current data processing for trouble shooting. This release also adds stability to the plugin system by proving the waitFor() function. Formatting fixes in IE and overlays, and other improvements, and other smallerer fixes, it also adds more options to the overlay.


CJAX 5.0-RC2
June 11, 2012

Changes from RC1 TO RC2
* Support to access for ALL JavaScript OBJECS and Functions
With the release of RC1, we gave you the ability to access all element's properties, now
we are taking it a step further in RC2 -
This is huge, and yes it means now you will have the possibility to access anything on the page through PHP.
functions, methods, objects, window, document, element's functions and methods, everything!.
Please Note: This is a brand new feature, and there is not enough time to get all these functions documented,
there is no assurance that all javascript functions will properly sync.
All this is done dynamically and there is not a "function per function" convertion.
See below instructions of patterns and ideas how to access the rest of the objects/functions/methods/properties/elements.
Again this is a brand new feature and it may change in the future.

See: http://cjax.sourceforge.net/docs/php2jav.../about.php

* Plugins New method - $plugin->waitFor()
Waits for a script with a specified filename to load before triggering plugin.
This helps to keep a clock on the plugin's execution which otherwise could fall into the asynchronous trap (loading and firing the
before loading it's dependencies - or not being able to reach functionality that may affect loading APIs or synchronous APIs might
have fired before the plugin has completely loaded and executed, hense unable to affect). This function is a flexible alternative
to keep an exact clock and has proven very dependable so far. All depends on the type and size of the plugin or whether you are experiencing
asynchronous "clock" issues.

* Performance: Plugins Speed, and everythsing else's speed -
This release is very important toward overall speed, and plugins speed, overcoming page load
and shifting to Dom Load, now everything will load even faster. You will be able
to notices the speed changes right away, for example in the uploadify plugin (download the new version of the plugin).
These changes also affect the overall system, which will also trigger APIs faster.

* Fallback: - Cjax currently depends on PHP SESSIONS to transmit APIs data over and across, some times some server might
have issues with sessions, or from time to time session might seem not 100% reliable through the usage we're giving it.
Currently the other option to fallback is COOKIES, but might prove on the same road.
We have added a new setting which you may specify as $ajax->fallback = true;. This will remove the dependency on PHP SESSIONS
and will automatically print a small script tag on the page which will serve the purpose.
This is not a replacement on how the system currently works, it's just an alternative tool for these that might experience issues or to troubleshoot.

* Config - while no configuration is required - we have added alternative options to allow you to easily debug, fallback, or other
settings, through a config file. A new file in cjax/config.default.php is included, it allows you to configure these settings. You may
also independently just call these settings like $ajax->debug = true or $ajax->fallback = true;. To make use of this config file
you will need to rename it from config.default.php to config.php, this is to avoid it being overwritten in case you update/upgrade later.

* Overlays now supports width property.

* Overlay url now supports callback option - you may pass a callback within the settings
and the requested contents will pass through the callback. Then you may manipulated before it is shown on the overlay.

* Fixed some IE overlay formatting issues.
Additionally, IE now plays nice with most of the demos, if not all.


Download
Quote:https://sourceforge.net/projects/cjax/fi...deIgnater/

Demos
Quote:https://sourceforge.net/projects/cjax/files/Demos/


Plugins
Quote:https://sourceforge.net/projects/cjax/files/Plugins/

Some links to the new stuff:

http://cjax.sourceforge.net/docs/prepend_append.php

http://cjax.sourceforge.net/docs/php2jav.../about.php

#43

[eluser]MonsterTKE[/eluser]
Getting a blank page at /ajax.php?/test/test, followed the instructions, added the rewrite rule to my .htaccess file. as well as using the included one. Basically a bone stock codeigniter install, the only outside library is Tank-auth.
#44

[eluser]Ajaxboy[/eluser]
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
#45

[eluser]XatroX[/eluser]
I get error like below. . .
how can i fix it?

Code:
Warning: defined() expects exactly 1 parameter, 2 given in C:\xampp\htdocs\inventory\ajax.php on line 34

*sorry if my english so bad Smile

#46

[eluser]Ajaxboy[/eluser]
Hello XatroX,

may I ask what version of the Ajax Framework you're using?
#47

[eluser]XatroX[/eluser]
[quote author="Ajaxboy" date="1340366035"]Hello XatroX,

may I ask what version of the Ajax Framework you're using?[/quote]

I use version 5.0 RC 2 with CI 2.1.0
#48

[eluser]Ajaxboy[/eluser]
Okay.. would you go inside file ajaxfw.php and on line 24 has a line that says...

* $Rev: (number) $

can you tell me what number/revision is after "$Rev:"?. Just need to check if you are really using the latest.. there was a small warning I recall and the package was re-uploaded short after, last week.
#49

[eluser]XatroX[/eluser]
[quote author="Ajaxboy" date="1340366572"]Okay.. would you go inside file ajaxfw.php and on line 24 has a line that says...

* $Rev: (number) $

can you tell me what number/revision is after "$Rev:"?. Just need to check if you are really using the latest.. there was a small warning I recall and the package was re-uploaded short after.[/quote]

$Rev: 1318 $

is it the latest??
#50

[eluser]Ajaxboy[/eluser]
Okay thanks,

AJAX_VIEW Constant allows you to view the response on the browser, if AJAX_VIEW is not defined, for security reasons it will not show the response on the browser, so 'AJAX_VIEW' is optional, Though in this package comes as 'on' by default, but there is a small typo on the definition.

In file ajax.php line 34,

change:

defined('AJAX_VIEW', 1);

to:

define('AJAX_VIEW', 1);

(remove the extra d),

This is a typo/ bug. Please change it, it will come as changed by next release.

-cj




Theme © iAndrew 2016 - Forum software by © MyBB