Javascript Articles

Page 532 of 534

HTML5 applicationCache vs Browser Cache

Nancy Den
Nancy Den
Updated on 30-Jul-2019 395 Views

HTML5 applicationCacheIt can be understood by an example that a web application is cached, and accessible without a connected internet. Application cache has some advantages: users can use the application when they're offline, cached resources load faster and reduced server load. Browser cache Web browsers use caching to store HTML web pages by storing a copy of visited pages. After that, the copy is used to render when you visit that page again

Read More

To “user-scalable=no” or not to “user-scalable=no” in HTML5

Rishi Rathor
Rishi Rathor
Updated on 30-Jul-2019 302 Views

For responsive design, you do not have to use user-scalable=no. Use it only if you want your application to look more like a native app.Zooming is a key feature for accessibility and you need to keep that in mind. You can control that users won't break your design if they zoom in. If you are doing responsive and your design breaks when zooming in, then you're not doing it right.If you totally need to use it, then keep in mind that zooming is an important accessibility feature that is used by many people.

Read More

Difference between Session Storage and Local Storage in HTML5

Daniol Thomas
Daniol Thomas
Updated on 30-Jul-2019 854 Views

Session StorageThe Session Storage is designed for scenarios where the user is carrying out a single transaction but could be carrying out multiple transactions in different windows at the same time.Local StorageThe Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons.HTML5 introduces the localStorage attribute which would be used to access a page's local storage area without no time limit and this local storage will ...

Read More

Unicode Byte Order Mark (BOM) character in HTML5 document.

Samual Sam
Samual Sam
Updated on 30-Jul-2019 731 Views

A byte order mark (BOM) consists of the character code U+FEFF at the beginning of a data stream, where it can be used as a signature defining the byte order and encoding form, primarily of unmarked plaintext files.Many Windows programs (including Windows Notepad) add the bytes 0xEF, 0xBB, 0xBF at the start of any document saved as UTF-8. This is the UTF-8 encoding of the Unicode byte order mark (BOM), and is commonly referred to as a UTF-8 BOM even though it is not relevant to byte order.For HTML5 document, you can use a Unicode Byte Order Mark (BOM) character ...

Read More

Top frameworks for HTML5 based mobile development

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 30-Jul-2019 272 Views

The following are some of the top frameworks for HTML5 based mobile development:1. Kendo UIUse Kendo UI to develop an invaluable cross-platform mobile application.2. BootstrapBootstrap supports HTML, CSS, and JS that allows developing mobile apps with responsive layouts.3. Ionic Ionic is open source framework used for developing mobile applications. It provides tools and services for building Mobile UI with native look and feel. The ionic framework needs a native wrapper to be able to run on mobile devices.4. Sencha TouchSencha Touch is a mobile application framework to develop user interface for mobile apps using HTML5, CSS3, and JavaScript. It assists the ...

Read More

What are the differences between group and layer in KineticJs with HTML?

Daniol Thomas
Daniol Thomas
Updated on 30-Jul-2019 566 Views

When making HTML5 web application using KineticJS, grouping, and layering need to be used.Groups are basically containers whereas layers are separators basically.The group is a container which is having shaped objects inside layers for ex group might contain both circle and rectangle.If a group is manipulated then elements within that group is also manipulated.ex if we drag the group then its elements get dragged as well.However, layers actually separate canvas elements that are at the top of one another. This is quite similar to the layers that work in Photoshop and Illustrator. Multiple layers are visible simultaneously.Layers are used to ...

Read More

Splitting and uploading extremely large files to Amazon S3

Sravani S
Sravani S
Updated on 30-Jul-2019 658 Views

For storing extremely large files on Amazon S3, the configured virtual machine can be used which would be 10+ GB in size.In HTML5 file API, very large files are divided into small bits on the client. The server has the responsibility to join files together and move the complete file to S3. There is no cost of sending the files between EC2 and S3, but for this, we need to maintain 2 apps to send large files. In Amazon multipart upload if chunk upload fails, it can be restarted. A 5GB data can be divided into 1024 separate parts and upload each one ...

Read More

Uniquely identify files before uploading with the HTML5 file API

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 254 Views

While making a fileuploader using HTML5 file API, we want to be sure that no duplicate files are uploaded based on actual data. Calculating a hash with MD5 is not an efficient method as all that happen on the client side and is time-consuming. There is actually no shortcut for this. If we need to identify duplicate files with no confusion then we have to first read the content of each file and then compare it.Another way is to find MD5 hash for given subset of file blocks using predefined invariant window.

Read More

HTML5 & JavaScript: resolution or size of <input type=file capture=camera>

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 796 Views

When the device is taking very large photos and we want to make such setting to take smaller photos from the mobile phone, then we can use two W3C ways of taking pictures.This can be done either through HTML or through JavaScript.HTML Media CaptureFor this, HTML uses capture and accept=”image/* ” on input tag .This will specify intend.However, through this way, we cannot specify the sizeMedia capture streamsIt allows fully programmatic access to the camera so that user can implement own capture dialogue for videos and still images.It also specifies constraints related to width, height, frame rate, facing rate, facing ...

Read More

How can I use goto statement in JavaScript?

Abhinanda Shri
Abhinanda Shri
Updated on 30-Jul-2019 3K+ Views

JavaScript goto statement is a reserved keyword. Generally, according to web standards it isn’t considered a good practice to use goto statement.Using goto with JavaScript preprocessing is still considered good as shown below.var a = 0; [lbl] beginning: console.log("Demo Text!"); a++; if(i < 424) goto beginning;The above code gets translated like the following −var a = 0; beginning: while(true) { console.log("Demo Text!"); a++; if(i < 424) continue beginning; break; }

Read More
Showing 5311–5320 of 5,339 articles
Advertisements