Lakshmi Srinivas has Published 315 Articles

How can we specify default values in MySQL INSERT statement?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 05:58:13

1K+ Views

At the time of creation of a table, if any column is defined with default values then by using the keyword ‘DEFAULT’ in the INSERT statement, we can take default value for that column. For example, we have created a table ‘employee’ with a default value of column ‘DOJ’ as ... Read More

How to sort MySQL output on the basis of the column which is not in the result set?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jan-2020 05:18:16

90 Views

It is quite possible to get the sorted output on the basis of the column which is not even the part of that output or not in the result set. It can be done by selecting the required fields and writing the name of the fields on the basis of ... Read More

Working with tag in HTML5

Lakshmi Srinivas

Lakshmi Srinivas

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

166 Views

You can try to run the following code to learn how to work with the tag in HTML5:                    #svgelem{             position: relative;             left: 50%;             -webkit-transform: translateX(-40%);             -ms-transform: translateX(-40%);             transform: translateX(-40%);          }             SVG                     HTML5 SVG Star                      

Drop target listens to which events in HTML5?

Lakshmi Srinivas

Lakshmi Srinivas

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

66 Views

To accept a drop, the drop target has to listen to at least three events. The dragenter event, which is used to determine whether the drop target is to accept the drop. If the drop is to be accepted, then this event has to be canceled. The dragover event, which is used ... Read More

jQuery Mobile: Sending data from one page to the another

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 29-Jan-2020 08:18:17

161 Views

To pass values, let us say our is the following, with page new.html,StructureThe JS will be:$( document ).on( "pageinit", "#new", function( event ) {    var myParam = $(this).data("url").split("?")[1];    myParam = parameters.replace("structure=","");    alert(myParam); });

Does HTML5 only replace the video aspects of Flash/Silverlight?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 29-Jan-2020 08:12:31

57 Views

Flash provides amazing GUI and many visual features for animations. It allows the user build everything inside a particular platform without a full integration into the browser wrapped inside the browser with the main scopes that are multimedia and other kinds of animation.The HTML5 element gives you an easy ... Read More

How to adopt a flex div's width to content in HTML?

Lakshmi Srinivas

Lakshmi Srinivas

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

233 Views

Use display: inline-flex to adopt a flex div’s width to content:#box {    display: inline-flex;    flex-direction: row;    flex-wrap: wrap;    max-width: 200px;    padding: 10px;    margin: 20px;    background-color: blue; }

Properties for HTML5 Canvas to create shadows

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 29-Jan-2020 07:05:42

99 Views

HTML5 canvas provides capabilities to create nice shadows around the drawings. All drawing operations affected by the four global shadow attributes.     Sr.No.                                         Property and Description1shadowColor [ = value ]This property ... Read More

HTML5 tag

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 29-Jan-2020 06:42:19

135 Views

The HTML5 tag is used to draw SVG Gradients. Yes, modern browsers support it.The following is the HTML5 version of an SVG example that would draw an ellipse using the tag and would use the tag to define an SVG radial gradient. Similar way you can use ... Read More

Detect area of a PNG that is not transparent with HTML

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 29-Jan-2020 06:40:56

385 Views

To detect an area of a PNG that is not transparent: You need to first get the buffer You need to get 32-bits reference of that buffer Scan 0 widths to find x1 edge Scan width 0 to find x2 edge Height to find the y1 edge Height 0 to find the y2 edgeRead More

Advertisements