title: Show local HTML file with JavaScript in SWT Browser widget in RAP
body: <p>For my RAP-project I need to show some charts. Because I haven't found any widget for this purpose, my plan was to use the browser widget, so I can use JavaScript-Plugins like Highcharts or Chartsjs. But I can't get it working. If I set an HTML-File in browser.setUrl, the browser widget don't show anything, not even simple HTML. The JavaScript-Console in Chrome says </p>
  
  <blockquote>
    <p>Not allowed to load local resource</p>
  </blockquote>
  
  <p>If I enter the HTML-Code with the <code>setText</code> method it shows the HTML, but JavaScript is not working, it don't load external JS-File like the jQuery-library. </p>
  
  <p>Can't this be done this way? Or where is my failure? (Sorry for my bad englisch, I'm not native speaker.)</p>
  
  <p>Here's the Java-Code I tried:</p>
  
  <pre class="lang-java prettyprint-override"><code>browser = new Browser(composite, SWT.NONE);
  browser.setTouchEnabled(true);
  browser.setBounds(10, 10, 358, 200);
  browser.setUrl("D:\\STATS\\statistiken.html");
  </code></pre>
  
  <p>Or this:</p>
  
  <pre class="lang-java prettyprint-override"><code>File file = new File("D:\\STATS\\statistiken.html");
  browser = new Browser(composite, SWT.NONE);
  browser.setTouchEnabled(true);
  browser.setBounds(10, 10, 358, 200);
  browser.setUrl(file.toURI().toString());
  </code></pre>
  
  <p>I tried also some other things, there were not working to. </p>
  
  <p>With HTML in setText-method (I tried external libraries and local libraries in same folder):</p>
  
  <pre class="lang-java prettyprint-override"><code>browser = new Browser(composite, SWT.NONE);
  browser.setBounds(10, 10, 358, 200);
  browser.setText(
      "&lt;html&gt;" +
      "&lt;head&gt;" +
          "&lt;script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js\"&gt;&lt;/script&gt;" +
          "&lt;script src=\"http://code.highcharts.com/highcharts.js\"&gt;&lt;/script&gt;" +
          "&lt;script src=\"http://code.highcharts.com/modules/exporting.js\"&gt;&lt;/script&gt;" +
      "&lt;/head&gt;" +
      "&lt;body&gt;" +
          "&lt;p&gt;Test&lt;/p&gt;" +
          "&lt;div id=\"container\" style=\"min-width: 400px; height: 400px; margin: 0 auto\"&gt;&lt;/div&gt;" +
      "&lt;/body&gt;" +
      "&lt;/htm&gt;");
  </code></pre>
  
  <p>Hope someone can help me with this problem.</p>