Nitya Raut has Published 272 Articles

What is the usage of
and

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 10:24:41

54 Views

The elements and are useful for screenreaders as well and help visually impaired users in reading the content of your web page. These are beneficial for eBook readers as well.Let us see how to work with both the elements.           HTML Section Tag ... Read More

What are the DataTransfer object attributes?

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 08:21:27

300 Views

The DataTransfer object holds data about the drag and drop operation. This data can be retrieved and set in terms of various attributes associated with the DataTransfer object.The following are the attributes:Sr.No.DataTransfer attributes and their description1dataTransfer.dropEffect [ = value ]Returns the kind of operation that is currently selected.This attribute can ... Read More

Test if the HTML attribute tabindex is present and get the value

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 06:35:53

279 Views

To get the value of the HTML attribute, try the following:$("#demo").attr("tabindex")The attr() method can be used to either fetch the value of an attribute from the first element in the matched set or set attribute values onto all matched elements.You can also use the hasAttribute() method to see if there ... Read More

What would be output if we will try to extract time values by providing the date values only to MySQL EXTRACT() function?

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 06:03:30

57 Views

When we try to extract hour value from a date, then EXTRACT() function will give the output 0 with a warning as shown in the below-given example −mysql> Select EXTRACT(Hour from '2017-10-20'); +---------------------------------+ | EXTRACT(Hour from '2017-10-20') | +---------------------------------+ | 0                 ... Read More

In MYSQL, how can we store a date where the day, month or both month & day are zero?day are zero?

Nitya Raut

Nitya Raut

Updated on 28-Jan-2020 10:34:35

220 Views

To store such kind of dates where the day, month or both month & day are zero we must have to set mode of sql to allow_invalid_dates mode.mysql> set sql_mode = 'allow_invalid_dates'; Query OK, 0 rows affected (0.00 sec) mysql> insert into check_date(OrderDate) values('2017-00-00'); Query OK, 1 row affected ... Read More

Flexbox layout losing proportions when reduced in size

Nitya Raut

Nitya Raut

Updated on 28-Jan-2020 09:19:54

65 Views

To avoid the Flexbox layout issue, you need to add the following:* {    flex-shrink: 0;    min-width: 0;    min-height: 0; }Here, flex-shrink: 1 - Flex items are allows to shrinkmin-width: 0 - flex items to shrink past their content

Cancels ongoing watchPosition call in HTML5

Nitya Raut

Nitya Raut

Updated on 28-Jan-2020 08:28:19

173 Views

The clearWatch method cancels an ongoing watchPosition call. When canceled, the watchPosition call stops retrieving updates about the current geographic location of the device.                    var watchID;          var geoLoc;          function showLocation(position) ... Read More

How much should be a JavaScript Line Length?

Nitya Raut

Nitya Raut

Updated on 17-Jan-2020 09:59:56

564 Views

Try to keep the length of lines less than 80 characters. This would make the code easier to read. Best practice is to move to next line using break if JavaScript statements aren’t fitting in a single line.In addition, move to next line only after a comma or operator. For ... Read More

Delete duplicate alphanumeric entries from column data in SQL

Nitya Raut

Nitya Raut

Updated on 18-Dec-2019 10:05:14

127 Views

You can opt for using regular expressions to remove the duplicate numbers from column c or any other intended column.ExampleSELECT REPLACE_REGEXPR ('([A-Za-z0-9])\1+' in 'BB11222343CC'    WITH '\1'    OCCURRENCE ALL) FROM OutputB12343C

How to use singleton class in android?

Nitya Raut

Nitya Raut

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

3K+ Views

Before getting into example, we should know what singleton design pattern is. A singleton is a design pattern that restricts the instantiation of a class to only one instance. Notable uses include controlling concurrency and creating a central point of access for an application to access its data store.This example demonstrate ... Read More

Previous 1 ... 7 8 9 10 11 ... 28 Next
Advertisements