CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Dec 17, 2018 11:12 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Oct 02, 2018 8:30 pm 
Offline

Joined: Thu Aug 09, 2018 2:38 am
Posts: 6
Hello all,

I have an issue with properly loading an image on the client side of the webvisu. I have following setup:
Wago PFC100 (750-8100) running codesys v3.5 SP13 Patch1.

The image is properly loaded and embedded in the imagepool. (See attached screenshot). In the webvisu I created an image element with dynamic image switching, using a string variable. The switching of the image works perfect in the preview of the webvisu inside of codesys. However client side in a web browser does not display the image, even though it has been embedded. (see screenshots)

When inspecting the website in my browser (right click -> "View page source") i get the following XML code:

Code:
<!DOCTYPE html>
<html>
<head>
   <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
   <script language="javascript" src="webvisu.js"></script>
   <script language="javascript" src="browsercontrol_ext0.js"></script>

</head>
<body onload="new Webvisu('background', 'foreground', false)">
   <div style="position: absolute; left: 0px; top: 0px;">
      <canvas id="background" width="1280" height="800" style="position: absolute; left: 0px; top: 0px; z-index: 100;">Webvisu not supported due to missing browser feature HTML5-Canvas</canvas>
      <canvas id="foreground" width="1280" height="800" style="position: absolute; left: 0px; top: 0px; z-index: 200;">Webvisu not supported due to missing browser feature HTML5-Canvas</canvas>
   </div>
</body>
</html>


I have googled the missing browser feature HTML5-Canvas issue and it seems chrome suspects a XXS (Cross-Site Attack), since I'm changing the image programatically.
I tried changing settings in chrome, to allow java-script execution, no luck.
I have tried different browsers as well, and changing settings, same issue.
I did install the certificates, so the https is resolved correctly (on the underlying os of the PFC100), but still same issue, it won't load properly.

Any ideas what else I could try? I really want those damn images to show client-sided.

Thanks for any hints.

Attachment:
webvisu.jpeg


Attachment:
embedded image.PNG


Attachment:
dynamic image.PNG


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Wed Oct 03, 2018 6:35 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3020
Hi,
could you try another browser for q quich test?
BR
Edwin


Top
   
PostPosted: Wed Oct 03, 2018 5:52 pm 
Offline

Joined: Thu Aug 09, 2018 2:38 am
Posts: 6
@Edwing:

I did try a different browser, as I mentioned in my original post. I have also tried changing the security settings in the various different browsers that I have tried. Unfortunately that did not work.

Any other ideas, of what could be going on here?


Top
   
PostPosted: Wed Oct 03, 2018 6:11 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3020
Hi,
is it possible to send the projectarchive (or reduced project) to the CODESYS store "my question -> bug report"?
BR
Edwin


Top
   
PostPosted: Mon Oct 08, 2018 3:21 pm 
Offline

Joined: Wed Oct 12, 2016 12:28 pm
Posts: 14
Hi studiologe,
you must use the exact name of your ImagePool in your code.

BR


You do not have the required permissions to view the files attached to this post.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited