Singsys blog

Basic XSS Vulnerability in React.js Applications

XSS Vulnerability in React.js

An excellent feature of React.js is it can escape XSS by default. Developers have always been drawn to React.js due to universal rendering benefits. This is the ability to render single page application on server-side and send client the html thereby, letting client be interactive without any need to re-rendering of the full page. Redux library contains the documentation regarding how this functionality is provided. The below code is featured as it is in the documentation.

  (more…)

Removal of Event Handler in jQuery

 jQuery Event Handler

An event handler is supposed to handle inputs received in a program or events. They are basically, callback routine which operates asynchronously. Event handler is an important element of info that lies inside generally in GUI (Graphical User Interface) or in some sort of input routine. Key strokes, action selections, timer expirations or mouse activity are included in GUI side. The input side includes file and data streams opening or closing as well as data reading.

  (more…)

HTML5 Dynamic Content Importance and Insights

HTML5 dynamic Data

Since the release of HTML5 integration of dynamic content in your website has become easy and quick. Previous to HTML5 dynamic content required the support of third party plugins. Among various type of dynamic content flash is most popular. You can directly embed content into the code without the intervention of any third party plugins. Dynamic content majorly includes videos, web applications, customer accounts, animated graphics and interactive forms.

 

(more…)

Data Binding Working in Angular JS

Data Binding Angular JS

Data binding refers to the process that is used for establishing a connection between the application UI and business logic. The Two-way data binding point towards the ability of binding changes with an object’s properties to changes in the UI and vice-versa. It means if we have a user object with a name property, when we assign a new value to user.name the UI will display the new name. Similarly, if an input field is included in UI for the username then the entering of value will result in a change in the name property of the user object.
(more…)

How to get a Timestamp in JavaScript

 Timestamp JavaScript

Method getTime() returns the total number of milliseconds between midnight of January 1, 1970 and the date specified by you. The often requirement to calculate with unix timestamp.

(more…)