Sunday , 17 December 2017
Home / Tag Archives: objects

Tag Archives: objects

Displaying Blog Posts – Node.js Tutorial for Beginners

Display Blog Posts

In this tutorial, we’ll be displaying blog posts to our visitors. To do this, we first create a variable that will store our blog posts. Then, we’ll display these blog posts  to our visitors. In a practical application you would use a database to store and retrieve our blog posts. In a future tutorial, we’ll take a look at some …

Read More »

Create a HTTP Web Server – Node.js Tutorial for Beginners

Create a HTTP Web Server

Like I promised, we’ll be creating a VERY simple web blog. Trying to build a fully built web application in Node.js is pretty difficult. So, we’ll be building a simple web app and then learn how to utilize frameworks to help make the process a whole lot smoother. So bare with me here. If things seem hard, then I promise it’ll …

Read More »

AJAX – Advanced JavaScript Tutorial

AJAX

AJAX stands for Asynchronous JavaScript XML. This can be a bit misleading as you can make AJAX calls be synchronous.  This tutorial requires that you upload and use your files on a live or local server. What is AJAX? Traditional websites would load a different page every time you needed to make a request to a different page or file. …

Read More »

Audio – Advanced JavaScript Tutorial

Audio

The video and audio objects both have the same events, properties and methods. So, you already know how to use most of things in the audio object. However, there are a couple of key differences when it comes to formats. Audio Tags To add audio into your document, then you use the <audio> tags like so. [crayon-5a36936c8d448009161254/] Like last time, …

Read More »

Event Handlers – Advanced JavaScript Tutorial

Event Handlers

If you’ve seen my events tutorial in my JavaScript basics tutorial series, then you already know how to use events. There’s another way of using events with event handlers. Before we begin, let’s update the <body> tags in our document to this. [crayon-5a36936c8dbd2627717811/] We just have a simple button in our document with the ID btn. To add an event, …

Read More »

Data Attribute – Advanced JavaScript Tutorial

Data Attribute

HTML5 is fairly new and it’s slowly being adopted by all web browsers today. A special feature of HTML5 is the ability to define custom data attributes. A data attribute is your own attribute that can contain information about an element. Let’s update our document to this. [crayon-5a36936c8e664846523778/] To create a data attribute, you simply create an attribute with the …

Read More »

Navigator Object – Advanced JavaScript Tutorial

Navigator Object

The navigator object allows you to grab information about the browser and visitor’s computer. You can grab the browser name, plugins, OS, language, etc. Properties Clear your script and add this bit of code. [crayon-5a36936c8ecbc958764112/] The navigator object is pretty tricky. Even though the navigator object has been around since Netscape Navigator 2, the properties and methods are supported in …

Read More »

Location Object – Advanced JavaScript Tutorial

Location Object

The location object contains information about the current URL you’re visiting. It can give you helpful information such as the port number, whether or not the site is using SSL and even allows you to redirect the user. Properties Clear your script and add this bit of code. [crayon-5a36936c8f3d8866029746/] There are a couple of properties of the location object, but …

Read More »

Timing Events – Advanced JavaScript Tutorial

Timing Events

There are 2 kinds of timing events. There’s one with timeouts and another with intervals. Timeouts execute once after a certain amount of time has passed by. Intervals execute repeatedly after a certain amount of time has passed by. Timeouts Clear your script and add this bit of code. [crayon-5a36936c8fea8217702369/] To create a timeout you use the setTimeout() method. This …

Read More »

Inheritance – Advanced JavaScript Tutorial

Inheritance

Another advantage to using prototypes is that you can have inheritance in your scripts. What is inheritance? Well, first let me show you and then I’ll explain. Clear your script and add this bit of code. [crayon-5a36936c9049c857514567/] Alright, let’s break this done. We have 2 objects. One is BankAccount and the other is SavingsAccount. We add a method to the …

Read More »
ULTIMATE WORDPRESS DEVELOPMENT COURSE
Want to learn how to create your own custom WordPress plugins and themes? Check out my course!
Get 93% off my course. You'll also learn how to integrate WooCommerce and BuddyPress into your projects. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!
close-link