Friday, June 21, 2013

How to check FileReader support this browser on not.(Drag,Drop);.


Drag drop file uploading doesn't  support all browser.
Please find this post  here

it's not working IE 9,8,7 and IE 10 compatibility view.

for this issue i have created this post how to check current browser support on not.
find this javascript code bellow.



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <script type="text/javascript">
  <!--
    function check(){
    if (typeof window.FileReader === 'undefined') {
  alert('fail');
} else {
 
  alert('success');
}   
    }


  //-->
  </script>
 </head >

 <body onload="check()">
 
 </body>
</html>

No comments:

Post a Comment

How ChatGPT can Benefit Coding: Your Guide to Leveraging an AI Language Model

 Introduction: Hello, coders! Welcome to this blog post on how ChatGPT, an AI language model, can benefit your coding skills and projects. A...