Recent

Author Topic: Synapse - problems with browsers?  (Read 1676 times)

kmk68

  • Newbie
  • Posts: 2
Synapse - problems with browsers?
« on: November 06, 2017, 11:08:11 am »
Hello.

I am doing a remote view of program parameters written in FPC.
I'm using Synapse and websocket.

As an illustration of states I would like to use images, but I have problems:

I can not handle sending pictures. The whole page is generated
ok except for <img src = "/ images / '+ sc +'. gif">. Where should the directory be?
in relation to the program? I put in lazarus \ MyProgram \ images \ .. does not work.
I tried the absolute path <img src = "C: / images / '+ sc +' .gif">, it does not work.

It only works if the files are on the computer where the browser is,
<img src = "file: / C: / images / '+ sc +' .gif">, ok. But ... works only on IE.
On Google Chrome or Mozilla, not ... :-(

What am I doing wrong?

Thanks in advance,
Kajetan

Thaddy

  • Hero Member
  • *****
  • Posts: 14382
  • Sensorship about opinions does not belong here.
Re: Synapse - problems with browsers?
« Reply #1 on: November 06, 2017, 01:34:59 pm »
Modern browsers prevent websocket from being used over port 80 and force 443 (https)
They require https for websockets. They also require at least tls 1.2.
Did you configure your program to use these bottom lines?

That IE still works amazes me, because microsoft edge will also do the above. Are you using a proper IE version? 11+?
« Last Edit: November 06, 2017, 01:37:33 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018