Archive

Archive for the ‘ajax’ Category

Project CMS finished

23 October, 2009 leadamc Leave a comment

I have been very busy for the last 3 months, for building a CMS management system for The Smith Group. It contains 14 websites and an admin CMS system.

The system is built from scratch in PHP MYSQL Javascript AJAX in a linux box.

Project management nightmare:

The requirement was not full established at the beginning of the project, and Project Manager went on vacation for 8 weeks. During the 8 weeks, I hard coded all the CMS systems, and based on the website new template he gave me.  I have all the functions coded, website integrated, modified, etc etc.  But when he got back, everything I did was not he wanted.  From experience, it highly depends on  his input on this project during the process of building the system. Now that he is back, 3 weeks after, all the functions, website layout, hyper links, etc etc are changed. Until now, he still wants to change functions, although these functions are already been modified in the previous 3 weeks. But anyway, the project is getting to an end. I will responsible for future changes.

From this example, also as per project management studies, how important it is to have a fully established and fully understand requirement for any given project!!!

I learned from experience, especially this experience, that to work on a project or to start a new project, requirement study and feasibility study is very important, and also have the requirements and scale well established before the start is the key to have a successful project.

Although this Smith CMS project is finished, it has extended for an extra 2 weeks in an established 9 weeks project schedule, which is about 1/5 times more.  It is a successful project based on customer satisfaction, functionality, and so on.

Categories: CMS System, Programming, ajax, php

Please reference this blog when you find us useful.

13 October, 2009 leadamc Leave a comment

Please pass a reference or link to us if you find any useful stuff interests you on this blog. It is very important for us to prompt our blog and our company.
ICN Technologies, the name to reference.
:) Just a thought.

Building CMS system for Smiths Motor Co. & Smiths Group

23 September, 2009 leadamc Leave a comment

Have been hired and custom build a CMS system for their brand new website template. Pretty much everything is blank, and I am so under paid… But anyway, I like doing it, and good at it anyway.

CMS system is up and running in no time, great work to me. MySQL PHP Ajax CSS, way it is now, gotta catch the fashion here.

I will post some sample coding examples that I gave me hard times, and all solved in the end.

Have anybody out there that does programming contracts by themselves? There are going to a lot people I think. Not a very reliable job, but makes some good money.

As for now, project getting to the end, and everything is up and running, and testing in a internal linux box. By end of this week, we will upload everything to Melbourne located data centre.

It is coding time, gotta fix some ridiculous error requests, which it is perfectly working as it is.
Leadamc

AJAX Coding example

22 February, 2008 leadamc Leave a comment

This coding goes to your <head></head> tags

====================================

<script type=”text/javascript”>
var request;
var dest;

function processStateChange(){
if (request.readyState == 4){
contentDiv = document.getElementById(dest);
if (request.status == 200){
response = request.responseText;
contentDiv.innerHTML = response;
} else {
contentDiv.innerHTML = “Error: Status “+request.status;
}
}
}

function loadHTML(URL, destination){
dest = destination;
if (window.XMLHttpRequest){
request = new XMLHttpRequest();
request.onreadystatechange = processStateChange;
request.open(“GET”, URL, true);
request.send(null);
} else if (window.ActiveXObject) {
request = new ActiveXObject(“Microsoft.XMLHTTP”);
if (request) {
request.onreadystatechange = processStateChange;
request.open(“GET”, URL, true);
request.send();
}
}
}

=============================

Using links to call javasripts functions

<div id=”menu”>
<table width=”240px”>
<tr><th> &nbsp;Product &amp; Services</th></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=0′,’display’)”>IT/IS Consultation Service</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=1′,’display’)”>Network Analysis and Assessment</span></td></ctr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=2′,’display’)”>Business Desktop Support</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=3′,’display’)”>Business Data Backup</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=4′,’display’)”>Business Dedicate Server</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=5′,’display’)”>Database Outsourcing</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=6′,’display’)”>Software Engineering and Outsourcing</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=7′,’display’)”>Computer Hardware Outsourcing</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=8′,’display’)”>Business IT/IS Total Outsourcing</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=9′,’display’)”>Emergency IT/IS Service</span></td></tr>
<tr class=”rowA”><td>&nbsp;<span onclick=”loadHTML(‘../products/product_ajax.php?product_id=10′,’display’)”>Temporary Link</span></td></tr>
</table>
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
</div>

==========================

And then all of them come to the AJAX  server-side function

<?php

switch($_GET['product_id']){
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
require(‘product-’.$_GET['product_id'].’.php’);

break;
default:
print(“No such category<br>”);
}

?>

===================

This is only the most basic functionality of a PHP AJAX MENU, use it at your own risk.

Job of the week Cont. Building menu system in Ajax using PHP

22 February, 2008 leadamc Leave a comment

Job of the week continue:

After a week of hard coding ICN Technologies CMS in php, it’s working so far so as expected. While the last two days being integration it to icnpro.com website. Now it’s online and good to go. There are still bugs to be fixed for example user login session not including time.

Since it’s our custom CMS system for icnpro.com, I’ve added some ajax coding. Utilizing AJAX to build a menu system. It is very efficient. As a result of the successful AJAX menu in CMS system, I’ve also added the AJAX system into the Product and Services page of the website. Try it out, I also included some AJAX PHP coding examples in the Research and Development Team website module, check it out and use it on your own risk.

ICNPro.com CMS has still more works to be done throughout it’s development life cycle. The system currently is only a prototype, more functionalities to be added in, such as adding encrypted articles, better structured coding, modification of existing articles.

User registration is not supported because of potential security risks. All users must be added by administrator (myself) into mysql database manual. User passwords are encrypted by MD5 algorithm, and no plain text is store in database. Happily we haven’t got too many users like IBM or EDS.

Regards.