Jennifer Nicholas has Published 291 Articles

How to limit maximum items on multiple input ()?

Jennifer Nicholas

Jennifer Nicholas

Updated on 25-Feb-2020 07:22:28

13K+ Views

To allow multiple file uploads in HTML forms, use the multiple attributes. The multiple attributes work with email and file input types.For limiting maximum items on multiple inputs, use JavaScript. Through this, limit the number of files to be uploaded. For example, let’s say only 2 files to be uploaded ... Read More

What are multiplicative operators in C++?

Jennifer Nicholas

Jennifer Nicholas

Updated on 11-Feb-2020 07:37:45

311 Views

The multiplicative operators are −Multiplication (*)Division (/)Modulus or “remainder from division” (%)These binary operators have left-to-right associativity. The multiplicative operators take operands of arithmetic sorts. The modulus operator (%) contains a stricter requirement in this its operands should be of integral type.The multiplication operator yields the result of multiplying the ... Read More

What is the use of scope resolution operator in C++?

Jennifer Nicholas

Jennifer Nicholas

Updated on 11-Feb-2020 06:43:03

538 Views

The :: (scope resolution) operator is used to get hidden names due to variable scopes so that you can still use them. The scope resolution operator can be used as both unary and binaryYou can use the single scope operator if a namespace scope or global scope name is hidden ... Read More

How can we take a backup of a particular table from a database by using mysqldump client program?

Jennifer Nicholas

Jennifer Nicholas

Updated on 07-Feb-2020 06:42:55

244 Views

By using mysql dump client program we can take the backup of a particular table from the databases into a file having the extension ‘.sql’. It can be understood with the help of the following example −ExampleIn this example, with the help of mysql dump client program, we are taking ... Read More

Composition attribute in HTML5 Canvas?

Jennifer Nicholas

Jennifer Nicholas

Updated on 29-Jan-2020 10:16:39

237 Views

HTML5 canvas provides compositing attribute globalCompositeOperation that affect all the drawing operations.                    var compositeTypes = [             'source-over', 'source-in', 'source-out', 'source-atop',             'destination-over', 'destination-in', 'destination-out',           ... Read More

DataTransfer object in HTML5

Jennifer Nicholas

Jennifer Nicholas

Updated on 29-Jan-2020 08:20:22

384 Views

The event listener methods for all the drag and drop events accept Event object that has a readonly attribute called dataTransfer. The event.dataTransfer returns DataTransfer object associated with the event as follows:function EnterHandler(event) {    DataTransfer dt = event.dataTransfer;    … }You can try to run the following code to ... Read More

How to get the total number of seconds from a MySQL DATETIME instance?

Jennifer Nicholas

Jennifer Nicholas

Updated on 29-Jan-2020 06:06:20

338 Views

The MySQL DateTime instance can be converted into seconds with the help of UNIX_TIMESTAMP() function in the following way −mysql> Select UNIX_TIMESTAMP('2017-05-15 04:05:30') AS 'NUMBER OF SECONDS'; +-------------------+ | NUMBER OF SECONDS | +-------------------+ |        1494801330 | +-------------------+ 1 row in set (0.00 sec)Above query will ... Read More

How to send a file and parameters within the same XMLHttpRequest

Jennifer Nicholas

Jennifer Nicholas

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

465 Views

To send a file and parameters within the same XMLHttpRequest:var myForm = new FormData(); myForm.append('param1', 'demo'); myForm.append('param2', 6767); myForm.append('myDir', 'public-data'); myForm.append('demofile', file); xhr.send(myForm);

What is the way to find business days between two specified dates in MySQL?

Jennifer Nicholas

Jennifer Nicholas

Updated on 28-Jan-2020 10:00:44

837 Views

With the help of DATEDIFF(expr1, expr2) we can find the business days between two specified dates.For example, if we want to find business days between ‘2017-05-27’ and ‘2017-05-23’ then following would be MySQL query −mysql> Select DATEDIFF('2017-05-27', '2017-05-23') AS 'Total Business Days'; +----------------------+ | Total Business Days  | +----------------------+ | ... Read More

HTML5 / JS storage event handler

Jennifer Nicholas

Jennifer Nicholas

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

315 Views

Storage event handlers only fire if the storage event triggered by another window. You can try to run the following code:// event handler window.addEventListener('storage', storageEventHandlerFunc, false); function storageEventHandlerFunc(evt) {    alert("Storage event called key: " + event.key );    switch(event.key){       case 'one':       case ... Read More

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