Singapore CMS Web Design

Gary Consulting Group - Singapore CMS Web Design

Timely Support and Clarity in your journey to harness the power of the internet
Email:
sales@name1price.com
Call:
+1 415 300-0019
Integrating the Xajax 1.5 library with EzFlow, EzPublish 4.0 PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Zhiwen Teh   
Monday, 09 March 2009 20:45

This tutorial will teach you how to install the Xajax extension which allows for the use of Ajax on your EzFlow enabled EzPublish web site.

Step 1 : download the Xajax extension package

The location of the Xajax 1.5 package can be found here

 

Step 2 : unzip the contents of your package the location >> extensions

Step 3 : Activate the extension

Go to location >> settings > override > site.ini.append.php and add the following entry

ActiveExtensions[]=xajax

Step 4 : copy the xajax.ini file from >> extension > xajax > settings > xajax.ini to location >> settings > xajax.ini

Step 5 : Insert a custom tag in your page layout.

If you are using the ezflow site package go to location >> extension > ezflow > design > ezflow > templates > pagelayout.tpl and add the following entry somewhere after the <head> tag

{xajax_javascript()}

Else if you are using the normal ezwebin site package go to location >> extension > ezwebin > design > ezwebin > templates > pagelayout.tpl and add the following entry somewhere after the <head> tag

{xajax_javascript()}

Step 6 : Clear your cache using the functions available in the administrative site

Step 7 : Go view your site, view the html source code. Check if you see the below lines of codes? If you do see it your ezpublish 4.0 site with ezflow installed is now ready for the use of Ajax and I will teach bring through a Hello World tutorial for using your Xajax extension in my next post.

<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
try { if (undefined == xajax.config) xajax.config = {}; }
catch (e) { xajax = {}; xajax.config = {}; };

xajax.config.requestURI = "/index.php?/eng/xajax/call";
xajax.config.statusMessages = false;
xajax.config.waitCursor = true;
xajax.config.version = "xajax 0.5 rc2";
xajax.config.legacy = false;
xajax.config.defaultMode = "asynchronous";
xajax.config.defaultMethod = "POST";
/* ]]> */
</script>

<script type="text/javascript"
src="/extension/xajax/design/standard/javascript/xajax_core.js"
charset
="UTF-8">
</script>

<script type="text/javascript" charset="UTF-8">
/* <![CDATA[ */
window.setTimeout(
function() {
var scriptExists = false;
try { if (xajax.isLoaded) scriptExists = true; }
catch (e) {}
if (!scriptExists) {
alert("Error: the xajax Javascript component could not be included.
Perhaps the URL is incorrect?\n
URL: /extension/xajax/design/standard/javascript/xajax_core.js");
}
}, 2000);
/* ]]> */
</script>
 

 

 
Tuesday, 22nd Aug 2017
Content Management System powered by Gary from Name1Price.com