Posts Tagged ‘javascript’

How to solve “NotAllowedError: play() can only be initiated by a user gesture.” audio problem in javascript android webview?

While playing audio in javascript using webview in android platform we may encounter following problem NotAllowedError: play() can only be initiated by a user gesture.. This is due to security and good user experience issue. So to enable sound play we should use following code in android: Android SDK below 17 will not support this hack so we should use the condition. Please comment if ... Full story

javascript new date not working in iphone and android devices with NAN and Undefined error

Today i found a new problem, the date object working perfectly in desktop web browsers but not working in android browsers and iphone browsers. The problem is they issue NAN and Undefined errors. So what is the universal solution? There is a simple solution to the problem. You should declare date as following format: If you are processing date from php then the ... Full story

How to solve indexOf javascript problem in internet Explorer?

indexOf is not supported by dump web browser internet explorer. To solve this we need to add following code in our javascript file. Full story
Copyright © 2019 Programmer to Programmer- A website for web programming and mobile application programming tutorials.
Wordpress themes