Home » JavaScript » Page 32

JavaScript

jQuery History Example

The aim of this example is to show you how to use the jQuery for accessing the browser history. Sometimes the web site’s user may want to go back to the previous page or forward to the next page. The following methods can be used for this purpose. back() method for loading the previous URL in the history list. forward() ...

Read More »

External Javascript Example

HTML, CSS and Javascript are the programming power team that have been used together since virtually forever, so it’s only logical to think that they can be included into one another in a multitude of ways. As much as I agree that HTML & CSS have a very special connection, to the point that it’s very difficult to even imagine ...

Read More »

How does Angular 2 Change Detection Really Work ?

The Angular 2 change detection mechanism is much more transparent and easier to reason about than its equivalent in Angular 1. But there are still situations (like when doing performance optimizations) when we really need to know whats going on under hood. So let’s dig deeper into change detection by going over the following topics: (sample code is here): How ...

Read More »

jQuery Lightbox Example

In this example, we’re having a look at a very popular jQuery plugin called Lightbox. Lightbox is originally a small javascript library used to overlay images on top of the current page. It’s a snap to setup and works on all modern browsers. It is one of the easiest solutions when it comes to individual image viewers or even galleries ...

Read More »

Quickstart: Angular2 with TypeScript and Gulp

Angular2 is around the corner. The new version of the framework is much simpler to learn thanks to easier and more concise concepts like component-based architecture, new dependency injection or built-in modularity. In this step-by-step tutorial you will learn how how to get started with Angular2 with TypeScript and Gulp. Source code available on Github. Introduction Angular 1.x is probably ...

Read More »

JavaScript Properties Example

Properties are one of the most basic Javascript notions. Basic to the point that they are more often than not overlooked in the language’s literature. However, it’s crucial to know and study them even for those who only want to have even the most elementary knowledge about JS. 1. What are Properties exactly? According to the official definition in the ...

Read More »

jQuery Http Get / Post Example

The aim of this example is to present and use the jQuery Http Get and Post methods. The jQuery get() and post() methods are used to request data from the server with an HTTP GET or POST request. These are the two commonly used methods for a request-response between a client and server. GET requests data from a specified resource ...

Read More »

Creating a NodeJS Web Server to Run angular-seed

The angular-seed project on GitHub is a great way to start playing with AngularJS. It allows you to get an AngularJS single-page web app up and running very quickly. If you want to run your web app with NodeJS then you will need to create a basic Node server. I will attempt to explain how to create a Node server configuration using some common Express framework components. ...

Read More »

RequireJS Tutorial – How to use RequireJS

Table Of Contents 1. What is require JS? 2. What is AMD? 3. Configuration 4. Require 5. Define 6. Module loading error handling 7. Optimizations 8. Plug-ins 8.1 text 8.2 domReady 8.3 i18n 8.4 CSS 9. Creating libraries using RequireJS 10. Conclusions 11. Download 12. Links This article is about RequireJS, it describes its main features and what specification it ...

Read More »