Developers Archive for March, 2008

Zebra Content Management System

Zebra Content Management System Monday, March 24th, 2008

After quite a lot of work (and yet still far from over) I started to actually implement websites using the Zebra Content Management System.

The Zebra Content Management System is both an API and a Content Management System (CMS) providing users a powerful and ready-made backend (the CMS itself) and developers a powerful API to interact with the data from the CMS. This gives the possibility for developers to quickly deploy complex websites without having to bother with coding the administration area of it, while having at disposal a powerful yet simple API to produce the front-end. Because of this, the development time of a standard presentation website can be as short as two days (or even a single day!) without sacrificing anything on the website – on the contrary, because more than 95% of the code and logic that is usually written for a website is already implemented in the APIs, the developers can now focus more to perfectly implement the designs and have more time to test it and make sure it’s W3C compliant.

Bottom line is that you can have your website ready very quickly, complete with registered users management, newsletters module, contact requests management (yes, you can forget about that CRM of yours), multiple language support, articles moderation, files management, image galleries and lots of other things, while everything being very search engine optimized.

The Zebra Content Management System (which uses as foundation the Zebra PHP Component Framework) has a very small footprint – the whole package (including documentation) it’s around 7MB. To run it requires an Apache server, PHP 4.3+ and MySQL 4.1+

Watch the quick presentation movie to get an idea of what I am talking about. An online demo will follow soon. Also, maybe you can share some of your thoughts with me…

If you’re interested in having your website done with the Zebra Content Management System please let me know by writing an email to noname at nivelzero dot ro.

Making labels appear for seconds and automatically disappear

Making labels appear for seconds and automatically disappear Thursday, March 20th, 2008

in the aspx page

<html xmlns=”http://www.w3.org/1999/xhtml”>
<head id=”Head1″ runat=”server”>
<title>Untitled Page</title>
<script type=”text/javascript”>
function TimeOutFuc()
{
var t = setTimeout(”ShowLabel()”,3000);
}
function ShowLabel()
{
var divObj = document.getElementById(’lbl’);
divObj.style.display = ‘none’;
}
</script>
</head>
<body>
<form id=”form1″ runat=”server”>
<div>

</div>
<div id=”lbl” >
<asp:Label ID=”Label1″ runat=”server” ></asp:Label>
</div>
<br />
<asp:Button ID=”Button1″ runat=”server” Text=”Show Label” onclick=”Button1_Click” />
</form>
</body>
</html>

In the code behind page

protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = “Some Message”;
Page.RegisterStartupScript(”ShowLbl”, “<script>TimeOutFuc();</script>”);
}

Color Change onClick

Color Change onClick Wednesday, March 19th, 2008

This a code sniplet for showing a shirt size selection by color change on mouse click in the size

<script language=”javascript”>

function set_selection(divid) {

document.getElementById(divid).style.backgroundColor = “red”;

document.getElementById(divid).style.color = “white”;

for(i=1;i<6;i++) {

if(i != divid) {

document.getElementById(i).style.backgroundColor = “white”; document.getElementById(i).style.color = “black”; }

}

} </script>

<table>

<tr> <th colspan=”5″>Select your Shirt Size</th> </tr>

<tr>

<td><div id=1 onclick=”set_selection(1)” style=”border: solid black 1px;width:35px;text-align:center”><b>S</div></td>

<td><div id=2 onclick=”set_selection(2)” style=”border: solid black 1px;width:35px;text-align:center”><b>M</div></td>

<td><div id=3 onclick=”set_selection(3)” style=”border: solid black 1px;width:35px;text-align:center”><b>L</div></td>

<td><div id=4 onclick=”set_selection(4)” style=”border: solid black 1px;width:35px;text-align:center”><b>XL</div></td>

<td><div id=5 onclick=”set_selection(5)” style=”border: solid black 1px;width:35px;text-align:center”><b>2XL</div></td> </tr>

</table>


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.