Archive for June, 2011

World’s Largest Community for Sharing Presentations, documents, videos privately/publicly and get analytics about your visitors and also do public or private Zipcasts.

www.slideshare.net

Ex: Javascript Best Practices by Christian Heilmann – http://www.slideshare.net/cheilmann/javascript-best-practices-1041724

Advertisements

http://blog.coryfoy.com/2007/07/test-driving-stored-procedures-in-sql-server-in-vs2008/

Site by Peter-Paul Koch – A prime source to check browser compatibility information. We will find here the free assessments of the major browsers’ CSS and JavaScript capabilities, as well as their adherence to the W3C standards

http://www.quirksmode.org/

SEO & HTML5 Vs SEO

Posted: June 26, 2011 in HTML5, SEO
Tags: ,

http://sixrevisions.com/web_design/improve-seo-website-design/

http://sixrevisions.com/web-development/10-seo-tips-to-remember-when-building-your-site/

http://sixrevisions.com/content-strategy/what-potential-impact-can-html5-have-on-seo/

var singleton = function () {
var privateVar = 10;
function privateMethod1() {
return privateVar;
}

return {
SetVal1: function (val) {
privateVar = val;
},
GetVal1: function () {
return privateVar;
},
GetVal2: function () {
return privateMethod1();
}
};
} ();

var obj1 = singleton;
var obj2 = singleton;
alert(obj1.GetVal1());
obj1.SetVal1(20);
alert(obj2.GetVal1());

// Global Variables – Version 1 : Should not use as the variable names may clash with other libraries that we refer in the page
var words = [‘a1’, ‘b1’, ‘c1’];
var getWord1 = function (n) {
return words[n];
};
alert(getWord1(1));

// Global Variables – Version 2 (better version ): but it is slow due to the fact that words array is recreated everytime we call getWord2 function
var getWord2 = function (n) {
var words = [‘a2’, ‘b2’, ‘c2’];
// Everytime getWord2 is called words array gets recreated, for testing you can have alert below and see that alert will be displayed on every getWord2 method call
alert(“getWord2”);

return words[n];
};
alert(getWord2(0));
alert(getWord2(1));

// Global Variables – Version 3 (best version) : using Closure
var getWord3 = function () {
var words = [‘a3’, ‘b3’, ‘c3’];
// Everytime getWord3 is called words array will not be recreated, for testing you can have alert below and see that alert will not be displayed on every getWord3 method call
alert(“getWord3”);

return function (n) {
return words[n];
};
} ();
alert(getWord3(0));
alert(getWord3(1));

http://msdn.microsoft.com/en-us/scriptjunkie/hh297451.aspx