Announcement : We stopped the development of our site platform, because we will launch a new platform and services.
2010
03.24

Hi folks, we have new identity. This logo will be applied upon the launch of our  new site. New site will be a combination of a custom CMS and Wordpress, those are for easy management of blogs, seo, and web applications. We will launch free web applications and widgets that can be use in many ways for your own web development.

cdz2 copy

Admin,

A New Identity for Codezyne (Art of code)
2009
12.10

There are instructions for Google feedburner on how to redirect your WordPress feeds to you feedburner feeds. But it’s not working on feed links which are using permalinks. There must be available way too out there. And this is my mine (.htaccess).

RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner) [NC]
RewriteRule ^feed/$ http://feeds.feedburner.com/Codezynecom [L,R=302]

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner) [NC]

RewriteRule ^feed/$ http://feeds.feedburner.com/mysitenamecom [L,R=302]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

Redirecting WordPress Feed to FeedBurner
2009
12.10

Sometimes when you need to get elements position like top and left,  or width and height, they always return zero value, or lesser to what we expected. Sometimes this problem occurred to elements display value.  So for quick fix, i used this code.

jQuery

var width = $(‘#hiddendiv’).css({display:”",visibility:”hidden”}).innerWidth();

$(‘#hiddendiv’).css({display:”none”,visibility:”visible”});

Javascript

var obj = document.getElementById(‘hiddendiv’);

obj.style.visibility=”hidden”; obj.style.display=”";

var width = obj.clientWidth;

obj.style.display=”none”; obj.style.visibility=”visible”;

Explanation : display:”none” means nothing to display, nor width, height, top or left. So to get those attributes without showing the element I used visibility:”hidden” and display:”". Then after getting the attributes I should return the visibility to “visible” and display to “none” because unlike display, visibility leaves blank spaces.

The clientWidth, innerWidth, top, left are returning 0 value
2009
12.08

I just stumbled an error in IE using html() method for altering html content of elements and I even using the latest version/stable of jquery. And some part of the scripts are really working using html(), some are not.  So I did a quick fix to overload html() method to work for IE.

Code :

Alternative 1

if($.browser.msie)

{

(function($){

$.fn.html = function(contents)

{

this.innerHTML = contents;  return $(this);

}

})(jQuery);

}

Alternative 2

$(‘#divId’).each(function(){this.innerHTML=”yourcontent here….”‘;});

Explanation : I traced the error inside the jquery and its pointing on appendChild, parentNode and firstChild. But I don’t want to alter the jQuery script so i just use innerHTML to put html content inside an element.

{
$(“.divsep”).css({‘margin-top’:

What if html() method won’t work on IE?
2009
12.08

Reversing elements in jQuery

I made a fade in/out gallery using jquery.  And images are positioned as absolute,  so the last image element is always on top.  And my solution to make the first element on top is this.

Code:

var elements = $(‘.imagetransition’).get().reverse();

$(‘#gallerycontainer’).html(”).append(elements);


Explanation :  get() will return the array elements of $(‘.imagetransition’), and reverse() is a method of an array object.

Reversing elements in jQuery
2009
12.08

A new face for codezyne.

Sitemap

Codes (3)
jQuery (3)
Other (2)
SEO (1)

A new face for codezyne.