Home » JavaScript » Page 31

JavaScript

Javascript Textarea Example

If you have applied somewhere online, or asked for a particular thing using the contact forms of the websites, you will most probably have seen those use a text-area field for the argumentation. It is a highly convenient feature of Javascript, and if you now want to add it to your own website, I would completely agree. But how can ...

Read More »

Writing unit tests for Sails.js app using mocha

Sails.js is a wonderful node.js framework. Writing unit tests for Sails.js using mocha is pretty easy. On the before method of a mocha test you have to lift the sails application and on the after function you have to lower it. var Sails = require('sails'); describe('SailsMochaTest',function() { before(function(done) { this.timeout(50000); Sails.lift({}, function(err,server) { if(err) { done(err); } else { done(err,sails); ...

Read More »

JSON-LD: Building Meaningful Data APIs

Everybody loves JSON! However, JSON by itself is pretty meaningless. Well. It has meaning, but only to the original creator of that format. They can share that meaning via documentation, conversation, or usage, but those often exist in places far removed from the JSON document you’re looking at. What if the meaning itself was encoded directly into the document? What ...

Read More »

How to run Angular 2 in Production Today

Recently there where announcements that made clear that the Angular 2 final release is just around the corner. This might be as early as mid-May during Google IO ! But thats still several months into the future, and there are many projects that will start between now and then. A question that gets asked a lot these days is: should ...

Read More »

Grunt RequireJS Example

Table Of Contents 1. Grunt 2. RequireJS 3. Grunt with RequireJS 4. Example 5. Summary 6. Download 7. Links 1. Grunt The main pre requisite that you need in order to follow this example is to have NodeJS installed in your environment. You can check the installation instructions here https://nodejs.org/en/. Grunt is a JavaScript based task runner. It is quite ...

Read More »

Automate your front-end development environment with npm

For JavaScript development, there are more build tools than you know what to do with. The non-verbal utterance category contains the two most popular ones, Grunt, and Gulp. Then you have your food-related tools, like Brunch, Mimosa and Broccoli. You’ve got fancy new hot stuff like fly. Then there’s classic make-like tools like Cake, Jake and ShellJS’s make. Some folks just ...

Read More »

jQuery Textarea Example

The aim of this example is to show you how to use the Textarea with jQuery. The Textarea tag defines a multi-line text input control. A text area can hold an unlimited number of characters, the size of a text area can be specified by the cols and rows attributes, or even better; through CSS’ height and width properties. jQuery ...

Read More »

Angular 2 coming to Java and Python: the first multi-language full stack platform?

Angular 2 is getting near the final release, and the whole community is really excited about the possibilities that it will bring. But the latest announcement a couple of days ago about the likely final release in May included one important quote about the future of Angular: With Angular 2, we’re really attacking it from a ‘platform of capabilities’ standpoint… ...

Read More »