I originally was going to provide a patch to just extend the current 7.x-1.x branch with a "sub-module" that was a very hackish way (wrapping callbacks) to provide token validation and $_POST parsing for AJAX requests.

After reviewing the code, I felt it was simply better and easier to just integrate these into the module itself. Also updating this module is painful because most of the code lives in the root js.php file. Each time it has to be updated. The code should also be refactored so it calls an execution function (just like index.php).

Solution/to-do:
Merge/update the 7.x-2.x branch with current 7.x-1.x code.
Refactor module.
Update documentation
Provide an example module for implementation
Create a dev release

Comments

markhalliwell’s picture

Committed 11cd991 to 7.x-2.x:

Merged 7.x-1.x into 7.x-2.x

Committed 19f79f6 to 7.x-2.x:

Issue #2214611 by Mark Carver: [JS] Refactor module.

Committed 76924fa to 7.x-2.x:

Issue #2214611 by Mark Carver: [JS] Refactor module.
Added initial js_example module.

plach’s picture

Just one small thing, since you are doing such a rewrite: can we use the same package of Entity cache: Performance and scalability?

markhalliwell’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Moving to the correct version now that a node has been created for the 7.x-2.x branch.

markhalliwell’s picture

Committed ea5b995 to 7.x-2.x:

Issue #2214611 by Mark Carver: [JS] Refactor module.

markhalliwell’s picture

Status: Active » Closed (works as designed)

More or less done. Release coming soon.