FScript:about

From fCMS

Jump to: navigation, search

< Sitesystem

[edit] fScript Module

Not all code needs to be run on the server backend. For additional functionality on the client JavaScript is used and the fScript JS Library provides multiple classes to support all kinds of activities. The fScript module will take care of interclass dependencies and will automagically add the required script-tags to the page delivered. For highest performance possible, this module should be set to cachable (cache="Y").

[edit] module skeleton

 <module class="fscript" cache="Y">
    <package name="fprotect" />     
 </module>

[edit] Packages

  • fProcess
The Ajax-Powered fProcess frontend. This class allowes fProcess based form verification pretty
much as the "old" way - except it's run in the background of the website using XMLHttpRequest.
The class returns true or false on verification along with a list of failed elements in case the
verification didn't work out.


  • fProtect
This submodules provides an autoload mechanism to unscramble mailto links within the current
html page. All links containing href="protect:......" will get rebuild to contain the
original mailto link. The scramble code to provide those links is provided in file <foo.php>
or online under http://protect.fcms.de/. No enduser interaction is required. For use within
the CMS, a callback is provided to generate protected mailto: links.


  • fJson
Json-RPC Wrapper for generic, custom Backend functions.


  • fScript
The core library providing all kinds of generic functions or missing hooks in the system.


  • fBase64
Browser independed Base64 en- and decoder. In case of a gecko based browser, the internal
functions btoa and atob are used, for all others a pure JS based implementation is provided.
Personal tools