Archive

Archive for June, 2012

How Websites are Connected through Cookie?

Jun 24th, 2012

How websites are connected through cookie/How cookie sharing is happening. See through collusion Add-on of Firefox using Collusion. see pic to understand.… (Continue)

Google Flags 9,500 Sites Everyday

Jun 21st, 2012

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

Jun 20th, 2012

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

Jun 20th, 2012

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

Jun 18th, 2012

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

Jun 8th, 2012

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

Jun 6th, 2012

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)

YUI3: How to get an Item from YUI object

Jun 6th, 2012

Get an item from YUI3 object using this syntax:
obj.item(num)
Ex1:
for(var i=0, len=yuiObj.size(); i… (Continue)

YUI3: How to Pass Argument to Event Handler

Jun 6th, 2012

To pass argument to event handler in YUI3:
this.on(‘click’, eventHandler, null, arg1, arg2, …);
function eventHandler(e, arg1, arg2) {}… (Continue)