JavaScript

What is “ use strict; ” in JavaScript, and what does it do?

If you have working with JavaScript over the last few years you will have no doubt come across this little snippet [sourcecode language="javascript" wraplines="true" highlight=""] "use strict"; [/sourcecode] Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a "strict" operating context. This strict context prevents certain actions from being taken and throws more exceptions. (more…)

By Manny, ago
Business

Find your voice

I would like to share some amazing tips i found written by the founder of Do Lecutures.com David Hieatt.

All brands have a voice. Some are incredibly inspiring. Some are as dull as ditch water. Some are real. Some are fake. Some resonate with your inner soul. And some leave you as cold as an easterly winter wind.
(more…)

By Manny, ago
Android

Remote debugging webpages on Android device pt.1

People always ask me why do i love Android so much. Here's why, as a Web developer i find the web development and debug tools built into Google's Chrome browser just plain amazing. One of the features i love most is: remote debugging of web pages on your mobile phone. If you are a web developer you will have no doubt made use of the Google Chrome DevTools. I am going to show you how to debug your web pages on your mobile phone via usb.

(more…)

By Manny, ago
General

ASP.net Client-side Validation

A couple of days ago, I faced a situation whereby I needed to add some form validation to an aspx page. I had options of either JavaScript or ASP.net client side validation. JavaScript seemed like an easier solution... <h5>Client-side JavaScript for form validation</h5> [code lang="js"] <script language="javascript"> <!-- Function CheckForm(form) { for(var intCtr = 0; intCtr <= (form.elements.length - 5); ++intCtr) { var temp = form.elements[intCtr]; if(temp.type == "text" && temp.value == "") { alert("Please Enter All Information!"); temp.focus(); return false; } } return true; } //--> </script> [/code]

(more…)

By Given Mthimunye, ago