Lakshmi Srinivas has Published 315 Articles

Any ideas on how to prepare for the future of Flash/ Flex/ HTML5 Development?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 28-Jan-2020 10:01:21

67 Views

In future, in the same like today, if any user still wants to use Flash they will have to enable Flash manually.HTML5 and Flex is the future.HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). The latest versions of Apple ... Read More

Load image from url and draw to HTML5 Canvas

Lakshmi Srinivas

Lakshmi Srinivas

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

3K+ Views

You need to create an image object in JavaScript after that set the src.However, you need to wait for the load event before drawing.The following is the canvas:var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); var myImg = new Image(); img.onload = function() {    context.drawImage(myImg, 0, 0); }; ... Read More

HTML5

Lakshmi Srinivas

Lakshmi Srinivas

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

463 Views

Use Mediaplayer of Android for playing audio. You need to call function of Android from JavaScript that you have written in HTML file.WebView wv = (WebView) findViewById(R.id.webview); wv.addJavascriptInterface(new WebAppInterface(this), "Android"); public class WebAppInterface {    Context mContext;    WebAppInterface(Context c) {       mContext = c;    } ... Read More

What is getContext in HTML5 Canvas?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 28-Jan-2020 08:30:13

1K+ Views

The canvas element has a DOM method called getContext, used to obtain the rendering context and its drawing functions. This function takes one parameter, the type of context 2d.Following is the code to get required context along with a check if your browser supports element:var canvas = document.getElementById("mycanvas"); if ... Read More

Is there any way to embed a PDF file into an HTML5 page?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 27-Jan-2020 08:04:10

602 Views

To embed a PDF file in an HTML5 page, use the element.           HTML iframe Tag               HTML5 Tutorial          

HTML file input control with capture and accept attributes is not working correctly

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 24-Jan-2020 11:18:21

388 Views

Use the accept attribute to set the types of files that the server accepts in HTML. Use the attribute only with .ExampleYou can try to run the following code to work with the accept attribute:              File Upload Box           ... Read More

How to set the top margin of an element with JavaScript?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 24-Jan-2020 06:37:27

1K+ Views

Use the marginTop property in JavaScript, to set the top margin. Can you try to run the following code to set the top margin of an element with JavaScript?ExampleLive Demo                    #myID {             border: ... Read More

How to make text italic in HTML?

Lakshmi Srinivas

Lakshmi Srinivas

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

16K+ Views

To make text italic in HTML, use the … tag or … tag. Both the tags have the same functioning, but tag is a phrase tag, which renders as emphasized text.Just keep in mind that you can get the same result in HTML with CSS font-style property.ExampleYou can try ... Read More

How to add elements to the midpoint of an array in Java?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 19-Dec-2019 08:51:41

173 Views

Apache commons provides a library named org.apache.commons.lang3 and, following is the maven dependency to add library to your project.           org.apache.commons       commons-lang3       3.0     This package provides a class named ArrayUtils. You can add an element at a particular ... Read More

Finding location of uploaded file using SAP GUI_upload

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 16-Dec-2019 07:44:17

628 Views

When you upload a file using the gui_upload function, the file is not uploaded to the Application server. The file is read from presentation layer to an internal table.ExampleFollowing code can be used to call a gui_upload function to read the file to an internet table:lv_filename = p_filebp. CLEAR lt_data_tab. ... Read More

Advertisements