AnsweredAssumed Answered

local javascript library + webviewer not working

Question asked by sebedm on Feb 20, 2018
Latest reply on Feb 22, 2018 by sebedm

Hello. Im using a javascript library (Highcharts) in combination with the webviewer as a charting function.

The applications works fine as long as you reference your library http.... style. But since in this application there would be not way to connect to the internet i need my libraries at the local machine. And here the problem starts, webviewer wont display any graphs.

 

Is this a know problem with any workaround? Or am I referencing the filepaths wrong her?

 

macOS Sierra v 10.12.6

Filemaker Pro Advance 16

 

The js code is passed as a webadress to webviwer

 

example of working js code

<!DOCTYPE HTML>

<html>

    <head>

 

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>

 

<script src="https://code.highcharts.com/highcharts.src.js" type="text/javascript"></script>

.........

 

 

example of NOT working js code

<!DOCTYPE HTML>

<html>

    <head>

       

<script src="/Users/sebastian/raw/bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script>

 

<script src="/Users/sebastian/Documents/Kriisa/Projekt/Grafmotor/Highcharts/Highcharts-6.0.6/code/highcharts.js" type="text/javascript"></script>

..........

 

Outcomes