Alan James Salmoni
2013-10-22 21:30:59 UTC
Hi everyone,
My program lets people draw and customise charts. My method is using
html2.WebView instance with JQuery and HighCharts. On OSX, it works really
well and I'm very happy with the results.
However, on Windows, the WebView showed nothing at all. I got my program to
print out the HTML code it showed and I saved it to a file (the code is
below). This showed up in Chrome just as it should but in IE, I got a
message box telling me that "Internet Explorer restricted this webpage from
showing scripts or Active-X controls". There was a buttons empowering me to
"Allow blocked content" or close the message box.
I think this is why the WebView on Windows isn't showing my page.
1. Can anyone else verify this on their machine?
2. And what would be the long term solution for this? Would I have to
distribute the libraries with the program and load them locally? It doesn't
seem possible to allow the blocked content from within a wxPython program
itself, at least not without lots of unnecessarily complex code.
All the best,
Alan J. Salmoni
HTML code that works on Chrome but not on WebView and only on IE if I allow
it.
<!DOCTYPE html>
My program lets people draw and customise charts. My method is using
html2.WebView instance with JQuery and HighCharts. On OSX, it works really
well and I'm very happy with the results.
However, on Windows, the WebView showed nothing at all. I got my program to
print out the HTML code it showed and I saved it to a file (the code is
below). This showed up in Chrome just as it should but in IE, I got a
message box telling me that "Internet Explorer restricted this webpage from
showing scripts or Active-X controls". There was a buttons empowering me to
"Allow blocked content" or close the message box.
I think this is why the WebView on Windows isn't showing my page.
1. Can anyone else verify this on their machine?
2. And what would be the long term solution for this? Would I have to
distribute the libraries with the program and load them locally? It doesn't
seem possible to allow the blocked content from within a wxPython program
itself, at least not without lots of unnecessarily complex code.
All the best,
Alan J. Salmoni
HTML code that works on Chrome but not on WebView and only on IE if I allow
it.
<!DOCTYPE html>
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="/js/themes/gray.js"></script>
<style>
body { font-family: helvectica, arial, 'lucida sans'; }
</style>
</head>
<body>
<div id="chart0001" style="width:100& height: auto;">
<script type="text/javascript">
$(function () {
$("#chart0001").highcharts({
chart: {
type: "area" },
title: {
},
subtitle: {
},
xAxis: {
categories: ["1.0","2.0"],
},
yAxis: {
title: { text: "y axis" }
},
legend: {
align: "do not show",
verticalAlign: "bottom",
enabled: false,
},
series: [{
name: "B",
data: [7.0,40.0]
}, ]
});
});
</script>
</div>
</body>
</html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="/js/themes/gray.js"></script>
<style>
body { font-family: helvectica, arial, 'lucida sans'; }
</style>
</head>
<body>
<div id="chart0001" style="width:100& height: auto;">
<script type="text/javascript">
$(function () {
$("#chart0001").highcharts({
chart: {
type: "area" },
title: {
},
subtitle: {
},
xAxis: {
categories: ["1.0","2.0"],
},
yAxis: {
title: { text: "y axis" }
},
legend: {
align: "do not show",
verticalAlign: "bottom",
enabled: false,
},
series: [{
name: "B",
data: [7.0,40.0]
}, ]
});
});
</script>
</div>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.