Introduction There is always a confusion in .call() and .apply(). Where to use when? Why we need to call a function using .call() and .apply(), even if, we can directly call that function ? For Instance :someFunction.call() and someFunc.apply() But we can directly call the function by someFunction(
Some times we need to detect the Browser Close to perform some operation before quiting from application. Here is a simple way.function CheckBrowser(){ // Check Browser Close [X] , Alt+F4 , File -> Close if(window.event.clientX
It is a very common issue to handle automatic postbacks to controls. Here I am going to explain how we can handle autopostback of a button click using Javascript Event. Suppose you have a button : Now you want to occationally c
Sometimes we have requirement to disable Right Click context menu and Text selection of a web page from the user, so that the user cannot use the right click default context menu and also to disable text selection so that sensitive data could not be copied from the website. To Disable Context Menudo
A program/application for learning and writing HTML. Get instant visual effect side by side with your code as you type. Support HTML5, Javascript and CSS3 elements.
In this post, we are going to learn how to use $ionicLoading service with Ionic 1 to give some visual feedback to your app users when some background task is taking place.
This post describes step by step how to run a Single Page Application template using ASP.NET Web API 2 and angularJS and how to use Web Application Project whose name is Dalyan.
This library is built so that you could secure JSON or string data in JS files. The library will shuffle the data in memory and make it unreadable for the naked eye.
.NET Framework actually has this functionality built-in.The object is this one: system.web.script.serialization.javascriptserializer.aspx[^]I use this a lot and it works as expected.Here's 2 examples:1. Dumb deserializationHere's the easyest way, where you get what you...
This article is targeted to people who are involved in designing of web based applications and want to give rich look and feel of web based application in all browsers using CSS3.
For ASP.NET MVC, HERE! is a much cooler approach:Basically, we use Ajax.ActionLink like this:The controller takes care of both the possibilities (Normal Post...
I would much rather taking advantage of the tools Visual Studio provides. If you have a continuous building in place, then you might as well use MSBUILD itself from the command line with a Custom MSBUILD TASK. For more infrmation and background on the concept, please refer to this...
This tip is a simple example to illustrate how the HTML5 CustomElements can be used to create a custom date tag which has the ability to show relative date (like '5 days ago', 'Next month', '5 years ago', etc.)
Prefix, Length, and Check Digit CriteriaHere is a table outlining the major credit cards that you might want to validate.CARD TYPE Prefix Length Check digit algorithmMASTERCARD 51-55 16 mod 10VISA 4 13, 16 mod 10AMEX 3437 15 mod 10Diners Club/Carte...
This article provides a solution to the age-long question of "How do I execute some server side code when my browser is closed?". The answer to this question is AJAX.