Krantik Chavan has Published 278 Articles

How can I know whether MySQL Server is alive or not?

Krantik Chavan

Krantik Chavan

Updated on 20-Jun-2020 11:20:21

356 Views

With the help of ‘mysqladmin’ program, we would be able to know whether our MySQLserver is alive or not. It can be used as follows on the command line −C:\mysql\bin>mysqladmin -u root ping mysqld is aliveThe message after running the command shows that our MySQL server is alive.Read More

What should one use CHAR data type or VARCHAR data type in MySQL?

Krantik Chavan

Krantik Chavan

Updated on 19-Jun-2020 13:29:53

376 Views

Actually, both of these data types in MySQL store strings and can be set with a maximum length. The use of these data types purely depends on the need. Followings are some points which will make us clear that when one should CHAR and when VARCHAR −Suppose if we have ... Read More

What is onmouseover event in JavaScript?

Krantik Chavan

Krantik Chavan

Updated on 19-Jun-2020 11:08:00

3K+ Views

The onmouseover event triggers when the mouse pointer moves over an element.ExampleYou can try to run the following code to learn how to work with onmouseover event in JavaScript −                                         This is demo text for mouseover event.    

How do you check that a number is NaN in JavaScript?

Krantik Chavan

Krantik Chavan

Updated on 17-Jun-2020 06:30:40

271 Views

NaN is a JavaScript property, which is Not-a-Number value. This shows it is not a legal number. Here’s the syntax −SyntaxNumber.NaNTo find out whether a number is NaN, use the Number.isNaN() or isNan() method. Here’s an example to check −ExampleLive Demo           Check     ... Read More

How to create JavaScript objects using new operator?

Krantik Chavan

Krantik Chavan

Updated on 16-Jun-2020 13:39:41

314 Views

The new keyword in JavaScript is the new operator, which creates an instance of a user-defined object type.ExampleYou can try to run the following code to create JavaScript objects using new operator −Live Demo                          var ... Read More

How can I write a form that assists my browser's auto-complete feature?

Krantik Chavan

Krantik Chavan

Updated on 16-Jun-2020 13:30:18

128 Views

The official specification of HTML5 states:When the autofill field name is "on", the user agent should attempt to use heuristics to determine the most appropriate values to offer the user, e.g. based on the element's name value, the position of the element in the document's DOM,  whaUse any of the ... Read More

Fire a JavaScript function when a user finishes typing instead of on key up?

Krantik Chavan

Krantik Chavan

Updated on 16-Jun-2020 11:47:11

319 Views

To fire a JavaScript function when the user finishes typing, try to run the following code −Example                    var timer = null;          $("#myText").keydown(function(){             clearTimeout(timer);             timer = setTimeout(doStuff, 1000)          });          function doStuff() {             alert("Write more!");          }                

How to handle Geolocation errors in HTML5?

Krantik Chavan

Krantik Chavan

Updated on 16-Jun-2020 07:37:10

1K+ Views

HTML5 Geolocation API lets you share your location with your favorite websites. A JavaScript can capture your latitude and longitude and can be sent to backend web server and do fancy location-aware things like finding local businesses or showing your location on a map.Geolocation is complicated, and it is very ... Read More

How to draw on the canvas with JavaScript?

Krantik Chavan

Krantik Chavan

Updated on 15-Jun-2020 11:54:40

629 Views

Drawing on the HTML canvas is to be done with JavaScript. Use the HTML DOM Method getElementById() and getContext() before drawing on the canvas.For that, follow some steps −You need to use the getElementById() method to find the canvas element.Use the getContext(), which is drawing object for the canvas. It ... Read More

How to use formtarget attribute in HTML?

Krantik Chavan

Krantik Chavan

Updated on 15-Jun-2020 11:32:18

255 Views

The formtarget attribute in HTML is used to indicate where the response that is received after the form submission is displayed. It overrides the target attribute of the HTML form tag. Use the formtarget attribute only with input type submit an image.Here are the attribute values of the formtarget attribute ... Read More

Previous 1 ... 5 6 7 8 9 ... 28 Next
Advertisements