- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Lakshmi Srinivas has Published 315 Articles
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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
Lakshmi Srinivas
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