Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Archive for December, 2013

How to add a video to a website

Thursday, December 5th, 2013 by Servage
I guess it’s about time we got to the markup for adding a video to a web page. Let’s start with an example that assumes you are designing for an environment where you know exactly what browser your user will be using. When this is the case, you can provide only one video format using the src attribute in the video tag (just as you do for an img). The below example shows a movie with the default player in the Chrome browser. We’ll look at the other attributes after the example. <video>...</video> Adds a video player to the page...

Advanced Javascript development – Part 4

Wednesday, December 4th, 2013 by Servage
Equal versus identical The tricky part is understanding the difference between “equal to” (==) and “identical to” (===). We already learned that all of these values fall under a certain data type. For example, a string of “5” and a number 5 are similar, but they’re not quite the same thing. Well, that’s exactly what === is meant to check. alert( "5" == 5 ); // This will alert "true". They're both "5". alert( "5" === 5 ); // This will alert "false". They're both "5", but they're not the same data type. alert( "5" !== 5 ); // This will alert "true", since they're not the same data type. Even ...

Staying ahead and being a successful webdesigner

Monday, December 2nd, 2013 by Servage
We live with a constant flux of new technologies, trends and tools in the web design and programming community, so staying ahead of the curve is important. Moreover, keeping pace is a must for our professional survival. An important question is how do we stay ahead? The most appropriate answer: by being contemporary. You need to be on top of present trends, behaviors of people online, and technologies. And all of these are heading toward new trends on the horizon. It is said that if you are optimistic, then each innovation and invention in technology brings new opportunities. Keep Motivation Alive Keeping yourself updated is a necessary ...

Advanced JavaScript Development Part 3

Sunday, December 1st, 2013 by Servage
Booleans We can also assign a variable a “true” or “false” value. This is called a Boolean value, and it is the lynchpin for all manner of advanced logic. Boolean values use the true and false keywords built into JavaScript, so quotation marks are not necessary. var foo = true; // The variable "foo" is now true Just as with numbers, if we were to wrap the value above in quotation marks, we’d be saving the word “true” to our variable instead of the inherent value of “true” (i.e., “not false”). In a sense, everything in JavaScript has either an inherently “true” or “false” value. “null”, “undefined”, “0”, and empty ...