Custom HTML5 title for WebVisu

dmitryy
2020-04-21
2020-04-23
  • dmitryy

    dmitryy - 2020-04-21

    Hello,
    I want to show custom, or "nice looking" title in browser's webpage. By default, it shows name of visualization. Please look at screenshot attached to understand what i want to achieve.
    I guess that it's not possible in easy way.
    One way I can imagine is to change the .htm file in PLC, and add to it additional script to overwrite the title, but i will have to change the file every time after online change, or full download of PLC program...
    Anyone have ideas?

     
  • m.prestel

    m.prestel - 2020-04-22

    Hello @dmitryy,

    I found an even better way:
    Open your webvisu.cfg.json and add the following entry: ChangeWindowTitle:false

    E.g.

    {
        "UpdateRate": 200,
        "PlcAddress": "0001",
        "UseLocalHost": true,
        "Application": "Application",
        "StartVisu": "Visualization",
        "BestFit": false,
        "LogLevel": "INFO",
        "CommBufferSize": 50000,
        "HasKeyboard": false,
        "TouchHandlingActive": false,
        "ScaleTypeIsotropic": false,
        "BestFitForDialogs": false,
        "ChangeWindowTitle": false
    }
    

    Edit your webvisu.htm to include a <title></title> with the title you want to have in

    Changes have to be applied after every online change/download

    Best regards,
    Marcel

     
    ๐Ÿ‘
    1

    Last edit: m.prestel 2020-04-22
  • m.prestel

    m.prestel - 2020-04-22

    Hello @dmitryy,

    yes, that should work!

    Best regards,
    Marcel

     
    ๐Ÿ‘
    1
  • dmitryy

    dmitryy - 2020-04-22

    Hello @m.prestel,
    I have checked this, it works. Very good workaround, big thanks!

    Do you think if it is theoretically possible to modify these files from IEC application, using CAA FILE library?

     

Log in to post a comment.