JAVASCRIPT Articles

JavaScript is a dynamically-typed language commonly used for client-side scripting. It is NOT the same as Java.


Multi-Line JavaScript Strings

The JavaScript language automatically adds semicolons to the end of lines, so creating multi-line strings like this will fail and generally result in errors… Bad Multi-line String Example var multiLineString = ‘This is the 1st line This is the 2nd line This is the 3rd line…’; Concationation Multi-line String Example Below is one correct method to do it that uses
Read More →

13 Best Code Schools to Learn Programming and Web Development

Below is a list of 13 Code Schools or Online Course/Video sites that you can use for anything from learning to write code and become a programmer/web developer all the way up to an experienced developer honing there skills and learning new technologies or languages. Ranked in no particular order… Laracasts Laracasts is a real gem. It’s a site featuring
Read More →

Use Node.js Modules in the Browser with Browserify

Browserify allows you to Require JavaScript files into other files using require(‘./testmodule’)just like NodeJS does, but in a Web Browser Application! In other words, it allows you to write browser-based applications using node.js-style requires. “Use Node.js Modules in the Browser with Browserify” Very Cool! This is done by using the Browserify NodeJS application from the command line to recursively analyze
Read More →

Cookie Permission Javascript for EU Cookie Law Compliance

This code & article content is credited to Michael Wright EU Cookie Law You may of heard about the new EU Cookie law by now, as of May 26th 2012 all websites based in the UK (even if their site is hosted overseas) must seek consent to store cookies on a user’s computer, or device. Failure to comply could result
Read More →

CodeDevelopr Email Newsletter

Subscribe to the CodeDevelopr Email Newsletter for Web Developers. CodeDevelopr will never spam your mailbox and will likely only send maybe 1 to 4 email newsletters per month about Web Development topics ranging from PHP, Python, Ruby & Rails, Javascript, jQuery, CSS, HTML, Web Design, Web Development, Databases, MySQL, Programming, and lots more in that field.
Read More →

The 10 Best Code Testing Sites on the Web

This is a list of some of the best sites on the web for a web developer to test code snippets and share them with others. These sites allow you to run and compile code without requiring you to upload files to servers and all the other stuff generally involved with sharing and testing code. This list is not complete
Read More →

Countdown remaining text characters in an HTML text input with jQuery

Using this simple Javascript with jQuery code snippet, we can count down the number of Text characters remaining based on a limit we set. This is very similar to how Twitter’s status input shows how many text characters remain as you type in text. For example, if we type in 20 text characters (including spaces) of 140 allowed, this will
Read More →