Lakshmi Srinivas has Published 315 Articles

Pull down to refresh on the mobile web browser in HTML.

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 24-Jun-2020 14:12:20

689 Views

When there is a requirement to pull down the screen to refresh the page to get latest updates, this can be done with the help of JavaScript, xhttprequests and then touch events.Pull refresh is a trigger to XHR in AJAX .It adds new data to the element we want.Pull refresh ... Read More

What are Pure HTML export buttons in jQuery Data Table?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 24-Jun-2020 14:06:49

132 Views

jQuery Data Table provides export buttons with the help of which we can make a structure like the following −Export PDFExport CSVExport HTMLExport ExcelFor this, we need to write code −var tbl = $('#extable').DataTable({      dom: 'export',        buttons: [          {     ... Read More

How to set the height of an element with JavaScript?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 13:06:43

658 Views

Use the height property to set the height of an element. You can try to run the following code to set the height of a button with JavaScript −ExampleLive Demo           Heading 1       This is Demo Text.       Update Height                function display() {             document.getElementById("myID").style.height = "100px";          }          

How to set all the four border radius properties at once with JavaScript?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 11:12:03

99 Views

To set all the border-radius properties in JavaScript, use the borderRadius property. Set the border-radius properties at once using this.ExampleYou can try to run the following code to learn how to set all the four border-radius properties −Live Demo                   ... Read More

How to set all the border bottom properties in one declaration in JavaScript DOM?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 11:07:31

75 Views

To set the border bottom properties in one declaration in JavaScript, use the borderBottom property. It allows you to set the border-bottom-width, border-bottom-style, and border-bottom-color.ExampleYou can try to run the following code to learn how to set border bottom properties −Live Demo             ... Read More

For Hosts Locale how to convert a string to lowercase letters in JavaScript?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 23-Jun-2020 07:46:38

100 Views

To convert a string to lowercase letters in JavaScript, use the toLocaleLowerCase() method.ExampleYou can try to run the following code to learn how to work with toLocaleLowerCase() method in JavaScript −Live Demo                    var a = "WELCOME!";          document.write(a.toLocaleLowerCase());          

What is MySQL GENERATED COLUMN and how to use it while creating a table?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 14:30:09

1K+ Views

Basically generated columns are a feature that can be used in CREATE TABLE or ALTER TABLE statements and is a way of storing the data without actually sending it through the INSERT or UPDATE clause in SQL. This feature has been added in MySQL 5.7. A generated column works within ... Read More

How can we see the metadata of a view(s) stored in a particular MySQL database?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 13:45:15

153 Views

The INFORMATION_SCHEMA database has a VIEWS table that contains view metadata i.e. data about views. To illustrate it we are taking the example of a view named ‘Info’.ExampleThe following query will show the metadata of a view named ‘Info’ −mysql> SELECT * from INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'Info' AND TABLE_SCHEMA ... Read More

What are the different privileges required for using views?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 13:20:14

109 Views

Following privileges are required for a different kind of CREATE, REPLACE, DROP, ACCESS, UPDATE etc. of usage of views − CREATE VIEW Privilege − CREATE VIEW privilege is required to create a view. Along with this we must have sufficient privileges, like SELECT, INSERT or UPDATE, for accessing the tables to ... Read More

How can we create a MySQL one-time event that executes immediately?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 22-Jun-2020 12:20:40

487 Views

As we know a one-time event means the events that will be executed only once on a particular schedule. To illustrate the creation of such kind of events we are using the following example in which we are creating an event which will execute at the current time −Examplemysql> Create ... Read More

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