# Category: html5

## How to keep all Autopopulate list values always visible using AngularJS

how to How to keep all Autopopulate list values always visible using AngularJS How to show autopopulate list values always visible even enter non-relevant text in Textbox. Example: if I enter ‘Ora’ in textbox, I’m getting only ‘Orange’ I want to show all values in the list value JsFiddle Please suggest any way to achieve this case. <div data-ng-app=’httpApp’ data-ng-controller=’httpAppCtrlr’> <input list=”values” placeholder=”select”> <datalist id=”values”> <option ng-repeat=”item in items” value=”{{item}}” ></option> </datalist> </div> Source: AngularJS

## How to add subtitles from a external source in HTML5?

I’m trying to add subtitles from an external source in a video html but I can’t. I’m using the WebTorrent Technology, so, I’m streaming video torrents in my Browser and the <track> tag not works for me. Here’s the code that I use: https://plnkr.co/edit/31RZSBETaAQgnCgZgKUt?p=preview The code for subtitles it’s this: file.appendTo(‘body’); var video = document.querySelector(“video”); var track = video.addTextTrack(“subtitles”, “prompt”, “en”); track.mode = “showing”; }); Thanks, i hope that you can help me! Source: AngularJS

## Memory Leak while using FileReader

I am using HTML FileReader and readAsDataURL but the memory consumption of my application keeps increasing as I upload new files. I have configured it to accept only one file. Whenever I select new file it doesn’t clear the memory used by old file. What could be the possible way to fix it? Source: AngularJS

## How to redirect a URL to the same URL with port number inserted dynamically

For example: Here the main intension is to hide the port number in the url. User should see the http://myproject.com/home/projects in the address bar on click of a button in webpage but it should dynamically redirect to the url http://myproject.com:portnumber/home/projects I am using angular js and html for frontend and golang as backend. What are the feasible ways to achieve above redirection either in golang or angular js? Source: AngularJS

## How to add time picker in datepicker html javascript?

I am implementing datepicker but I want to add time picker also. Now I am selecting date and time separately. but I want to select date and time in sequence after one click. I want to implement like this http://embed.plnkr.co/MtQK3wsHtf1hy1F9A5rg/ But I want to consider 24hrs clock. angular.module(‘ui.bootstrap.demo’, [‘ngAnimate’, ‘ngSanitize’, ‘ui.bootstrap’]); angular.module(‘ui.bootstrap.demo’).controller(‘DatepickerPopupDemoCtrl’, function ($scope) {$scope.today = function() { $scope.dt = new Date(); };$scope.today(); $scope.clear = function() {$scope.dt = null; }; \$scope.inlineOptions = […]