kunal-chowdhury.com

JavaScript

Showing posts with label JavaScript. Show all posts
        

An interface in TypeScript contains only the declaration of the methods and properties, but not the implementation. It is the responsibility of the class that implements the interface by providing implementation for all the members of the interface.

 

Today, in this TypeScript Tutorial, we will learn how to work with Interfaces in TypeScript. Continue reading to learn more.

Published by on under CodeProject | DZone

Just like any other OOPs supported languages, TypeScript also allows you to inherit a base class. In the last article, we learned how to create class in TypeScript. We have also learned how to create a constructor and how to instantiate a class object.

 

In this article of the TypeScript Tutorial for beginners series, we will learn how to inherit a TypeScript class. Continue reading to learn it today.

Published by on under CodeProject | DZone

Earlier in the TypeScript Tutorial series (Getting started with TypeScript) we learnt about the TypeScript configuration file, variable declaration and basic data types. I hope that was neat and clear to understand the very basics of TypeScript.

 

Today in this article, we will learn how to define a class and instantiate class object. Continue reading to learn about it today.

Published by on under CodeProject | DZone

Like JavaScript and any other languages, TypeScript also provides basic data types to handle numbers, strings etc. Some common data types in TypeScript are: number, string, boolean, enum, void, null, undefined, any, never, Array and tuple.

 

Let's learn more about these basic data types of TypeScript, which you will need to use always. Let's learn with suitable examples.

Published by on under CodeProject | DZone

In the previous few chapters of the TypeScript Tutorial series we have learned how to install TypeScript and then begin with creating a simple HelloWorld application. We have also learned about TypeScript configuration file (tsconfig.json).

 

In this chapter we will learn various ways to declare variables in TypeScript. Continue reading to learn more about it.

Published by on under CodeProject | DZone

The tsconfig.json file allows you to specify the root level files and the compiler options that requires to compile a TypeScript project. The presence of this file in a directory specifies that the said directory is the TypeScript project root.

 

In this chapter of the TypeScript Tutorial series we will learn about tsconfig.json, it's various properties and how to extend it.

Published by on under CodeProject | DZone

If you have read the previous chapter of the TypeScript Tutorial series, you have already learned how to install Node.js and TypeScript and might have already installed those. Now, it's the time to go a step further to learn how to write code in TpeScript.

 

In this article, we will learn how to create a simple HelloWorld application, compile it and run it. Continue reading to know more.

Published by on under CodeProject | DZone

TypeScript is an open-source programming language, developed and maintained by Microsoft, and hosted in GitHub. TypeScript is a superset of JavaScript and can be used to develop JavaScript applications for both client-side and server-side.

 

This post will cover how to install Node.js and then proceed with installation of TypeScript using the Node Package Manager.

Published by on under CodeProject | DZone

If you want to display more information in a small space of a webpage, you want to use 'Toggle panel'. This way user only have to click on a link or a tab (based on your design) to display the information within that less space. The other pane will collapse automatically to give a toggle effect.

 

In this tutorial, we will learn how to create the effect in a HTML web page using only CSS. We will not use any JavaScript for this. Continue reading to learn more.

Published by on under CSS | HTML

There could be some possible business cases where we need to insert a HTML element inside a post. This should not be a static one but a dynamically injected at the middle of the article. So, what to do in such case? How can we insert it by writing some code?

 

Today in this blog post, we are going to see the same with the help of jQuery code. This will not only reduce the burden of writing huge code, but also give a better performance.

Published by on under HTML | JavaScript

Microsoft Virtual Academy is organizing a live event for the developers who has basic knowledge of JavaScript and looking forward to improve their JavaScript skill. Join Microsoft experts Christopher Harrison and Gabrielle Crevecoeur on 28th October and take your skills to the next level.

 

It’s a whole day event for experienced developers and yes, it’s completely free. So, don't miss! Read more to find out details and registration link for the event.

Published by on under Events | JavaScript

It’s Tuesday again and I am back with the top news on Microsoft platform. Above the fold you will find posts on Linux and Open-Source computing page, Azure, TypeScript, Internet of Things (IoT) and Kinect. Hope, you will like this posts.

 

Don’t forget to share your views/opinions about this “Microsoft Tuesday” channel. Your feedbacks are always appreciable.

Published by on under Azure | JavaScript

With help of Microsoft, I am sharing top 5 news with you on Microsoft platform. This is the first post on this channel and I hope you will like it over the period. Please share your views on these topics below, which will be shared to the team over time.

 

Above the fold, Microsoft Research makes touch develop tool as open source. Read more to find out the top 5 posts. Don’t forget to share your views/feedback.

Published by on under DZone | JavaScript

Few days ago, we learned about “Easy Form Validation using HTML5”. Hope, you liked that post. Today we will explore another new great feature of HTML5 with complete code analysis and simple but easy to understandable demo.

 

HTML5 exposes geolocation API to get the geographical location of user. Today we will focus our discussion on this topic. So, continue reading.

Published by on under DZone | HTML

If you are a web developer, many time you want to use a HTML Color Code Generator, which can give you proper hex-code for your selected color. Also, you might want to integrate a color palate in your web application for your user.

 

This post will help you to build a color palate in any web page and chose your color code from there. A sample and it’s code is attached here for your direct referral.

Published by on under HTML | JavaScript

If you are ASP.Net developer, you might be aware of the AdRotator control. The AdRotator control is used to display a sequence of ad images from an XML file which stores the ad information in proper format.

 

But if you want to use the same in a non-asp site, how can you develop it? Exactly, I was looking for such answer for one of my friend and later found a solution which uses plain JavaScript to build the adrotator in a simple HTML page. A simple knowledge of JavaScript coding can help you on this. In this post, I will share the same code with you. So, if you want to implement it, you can take direct reference from here.

Published by on under JavaScript | Tips
We all know the process to embed a Silverlight application inside a Webpage using div and object tag. When we create a new Silverlight application project, those tags automatically generates by the IDE inside the html and aspx pages.

In many cases we need to dynamically add the Silverlight application inside a webpage. In this post, we will learn the process to host it using JavaScript. Looks interesting? Read to know more.
Published by on under JavaScript | Silverlight