title: Microsoft JScript runtime error: Access is denied Dropbox.js in IE
body: <pre><code>&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.9.0/dropbox.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Hi am using above file to access dropbox functions. It contain all the dropbox functions. i included this one to my application and i 
   used the below code to upload a file to dropbox using writefile function.<br>
   This was working fine in chrome and Mozilla browser but in IE its getting an error.<br>
   <strong>The error is: "Microsoft JScript runtime error: Access is denied".</strong><br>
      Please anyone help me how to resolve thid IE Error and tell me the reason why this error coming only for IE Browser?</p>
  
  <pre><code> var UploadToDropbox = new Dropbox.Client({ key: consumerKey, secret: consumerSecret, token: accessToken, tokenSecret: accessTokenSecret, dropbox: true });
              UploadToDropbox.authenticate(function (error, UploadToDropbox) {
                  if (error) {
                      alert('Something wrong here.');
                  }
                  else {
                      UploadToDropbox.writeFile("HelloWorld.txt", "Hello, world!\n", function (error, stat) {
                          if (error) {
                              return showError(error);  // Something went wrong.
                          }
                          alert("File saved to your dropbox successfully. ");
                      });
  
                  }
              });
  </code></pre>
  
  <p>Hi thank you for your reply my question and i tried like that but still that same error coming.</p>
  
  <p>Ok now what should i do for resolve this error.</p>
  
  <p>and i tried with this also </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          // Hack to make dropbox.js works in IE8, IE9.
          if (!window.btoa) window.btoa = base64.encode; 
          if (!window.atob) window.atob = base64.decode;
      &lt;/script&gt;
  </code></pre>
  
  <p>but same error.</p>