Mkotla has Published 100 Articles

Should I include language="javascript" in my SCRIPT tags?

mkotla

mkotla

Updated on 30-Sep-2019 07:42:16

322 Views

The language attribute in JavaScript is optional since the introduction of HTML5 brought some new improvements. JavaScript became the default language for HTML5 and modern browsers. Therefore, now adding javascript isn’t required in tag.This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although ... Read More

What does the leading semicolon in JavaScript libraries do?

mkotla

mkotla

Updated on 30-Sep-2019 06:59:03

212 Views

A function in JavaScript looks like the following:(function(){...})()A library in JavaScript shows a function, which begins with a semicolon, for example:;(function ) { }The semicolon allows to safely concatenate several JS files into one. This is to serve it faster as one HTTP request.A leading semicolon can also be to ... Read More

Methods of 3D transforms with CSS3

mkotla

mkotla

Updated on 30-Jul-2019 22:30:22

68 Views

The following are the methods used to call 3D transforms:ValuesDescriptionmatrix3d(n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n)Used to transforms the element by using 16 values of the matrixtranslate3d(x, y, z)Used to transforms the element by using x-axis, y-axis, and z-axistranslateX(x)Used to transforms ... Read More

CSS Relative units

mkotla

mkotla

Updated on 30-Jul-2019 22:30:22

180 Views

In relative units, the length value is fixed and it appears the exact size of the element. Let us see the units:UnitsAbbreviationPercent%EmEmExExRoot emRemViewport widthVwViewport widthVhViewport widthVmCharacterChGridGd

How to Line Breaks to JavaScript Alert?

mkotla

mkotla

Updated on 30-Jul-2019 22:30:21

4K+ Views

To add line breaks to JavaScript alert, use “\r”. In the following example, we will see how to display text in JavaScript alert.Example Live Demo                    function DisplayAlert() {             var newLine = "\r"       ... Read More

How to call a JavaScript function on submit form?

mkotla

mkotla

Updated on 30-Jul-2019 22:30:21

14K+ Views

The onsubmit event occurs when you try to submit a form. You can put your form validation against this event type. The following example shows how to use onsubmit. Here we are calling a validate() function before submitting a form data to the webserver. If validate() function returns true, the ... Read More

How to concatenate byte array in java?

mkotla

mkotla

Updated on 30-Jul-2019 22:30:21

2K+ Views

You ByteArrayOutputStream to write byte arrays and get the result using its toByteArray() method.import java.io.ByteArrayOutputStream; import java.io.IOException; public class Tester { public static void main(String[] args) throws IOException { byte[] a = { 1, 2, 3}; ... Read More

Difference between Java SE, Java EE, and Java ME?

mkotla

mkotla

Updated on 30-Jul-2019 22:30:20

1K+ Views

Java provides three editions JSE, JEE, JME. JSE − Java Standard Edition using this, you can develop stand-alone applications. This provides the following packages − java.lang − This package provides the language basics. java.util − This package provides classes and interfaces (API’s) related to collection framework, events, data structure ... Read More

How to set the first day of the week in sap.m.DatePicker's calendar?

mkotla

mkotla

Updated on 30-Jul-2019 22:30:20

80 Views

I don’t think there is any recommended way to access internal calendar in Datepicker. I would suggest you raise a function request in Openui5 using GitHub.

What is Java API and what is its use?

mkotla

mkotla

Updated on 30-Jul-2019 22:30:20

6K+ Views

The full form of API is Application Programming Interface. It is a document which gives you the list of all the packages, classes, and interfaces, along with their fields and methods.Using these API’s, the programmer can know how to use the methods, fields, classes, interfaces provided by Java libraries. Read More

Advertisements