Archive

- for June, 2012

Google Flags 9,500 Sites Everyday

Google finds 9,500 sites everyday who is involved in malicious activities. It give malware warnings to 300000 download everyday. It also send thousands to warning to webmasters every using email for making the web safe.
Read more about the effort on web browsing safe here on znet.… (Continue)

YUI3 to JQuery Conversion or Opposite

I have written few lines of YUI3 code and I wanted to convert that into jQuery as it is. I have noted down these differences:
YUI to jQuery
1. Instead of just ‘this’ → $(this).
Inside JQuery callback function, ‘this’ refers to DOM object, not a jQuery object.
2. node.one()/node.all()… (Continue)

Table Sorting in JavaScript

Here is code which is an extension of Client-side Table Sorting using JavaScript. This extension add few features to the table sorting code in javaScript.
This code does not need to add event handler in HTML code. Using JavaScript itself, hander is getting added. Based on string in column, sorting… (Continue)

PHP Penetration in Enterprise Market

PHP Penetration in Enterprise Market is increasing. It has already many core applications running on Enterprise and it is going to increase at good rate as come in recent survey. Zend has become good and guiding force for enterprises all over the world.
Availability of developers and ease of development… (Continue)

YUI3: Accordion Examples

Here is a ready three examples of YUI3 Accordions. Last one is the trimmed version so that you can use your own styles on it. I am presenting simplest code here which is the last one.
Working Demo of the Simple Accordion. There you will find link to 2nd example.… (Continue)

YUI3: Convert DOM Object to YUI3 Node and Convert YUI node to DOM element

DOM object to YUI3 Node:
Wrap the DOM element in Y.one() or Y.all() depending on DOM element is single element or a list. Y.Node() and Y.NodeList() is also available.
// returns a Y.Node instance
node = Y.one(document.createElement(‘span’));
// or
// node = new Y.Node(document.createElement(‘span’));
// Y.all NodeList method:
spans =… (Continue)