Showing: 11 - 19 of 19 Articles

jquery does not executed issue

I think you might have written jquery.min.js and jquery.mobile-1.4.5.min.js after your .js file. example: <script type=”text/javascript” src=”js/yourfile.js”></script> <script src=”js/jquery.mobile-1.4.5.min.js”></script> <script src=”js/jquery.min.js”></script> above code is worng code, you must write jquery.min.js and jquery.mobile-1.4.5.min.js before your .js file. correct code is: <script src=”js/jquery.mobile-1.4.5.min.js”></script> <script src=”js/jquery.min.js”></script> <script type=”text/javascript” …

Video height issue when set src from local storage

Hi, When you set video src from local storage, then please don’t load again that video tag. see below example for reference. $(‘#my-video’).html(”); var srcPath = cordova.file.documentsDirectory + FileName; $(‘#my-video’).html(‘<source src=’+srcPath+’ type=”video/mp4″></source>’ ); $(‘#my-video’).load(); so you need to remove last line, then your code would …

Show progress for ongoing download phone-gap application

Here the example for showing progress of ongoing download file. You need below line in your .html file: <div id=”status”></div> You need to write below code in your javascript file: var fileTransfer = new FileTransfer(); fileTransfer.onprogress = function(progressEvent) { if (progressEvent.lengthComputable) { var perc = …

Download & Store files in documents directory iOS phone-gap application

Hello, Here is the code for download and store files in document directory ios phone-gap app. var fileTransfer = new FileTransfer(); fileTransfer.download( uri, filePath, function(entry) { alert(“download complete: ” + entry.toURL()); } }, function(error) { alert(“download error source ” + error.source); alert(“download error target ” …

How to display ticking clock with differnce time from specific time (hours , minutes and seconds) in AngularJS?

Directive code : app.directive(‘clock’, [‘dateFilter’, ‘$timeout’, function (dateFilter, $timeout) { return { restrict: ‘E’, scope: { format: ‘@’, }, link: function (scope, element, attrs) { var updateTime = function () { //GET UTC DATE TIME BY USING MOMENT JS var now = moment(new Date()).utc().format(‘YYYY-MM-DD HH:mm:ss’) …

PUG/JADE Template

What is PUG//JADE Template ? Pug is a high performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers… PUG//JADE Attributes. Tag attributes look similar to html (with optional comma), but their values are just regular JavaScript. PUG/JADE CODE a(href=’https://www.google.com’ …