Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. objekt mit Bild Url auflösen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    objekt mit Bild Url auflösen

    This topic has been deleted. Only users with topic management privileges can see it.
    • EdgarM
      EdgarM Developer last edited by

      Hallo,

      ich würde in einem widget gerne ein png einfügen.

      Allerdings ist in dem Bose Objekt nur eine url auf ein Bild.

      Wie kann ich das Bild runterladen ( on demand ) und dann in ein src element einfügen?

      objekt:
      bosesoundtouch.0.presets.4.iconUrl -> http://radiotime-logos.s3.amazonaws.com/s143888q.png

      im Widget habe ich ein <src> element, im javascript löst er die url aber nicht auf:

      <img src="bosesoundtouch.0.presets.1.iconUrl">

      grüße und danke
      E

      M harrym 2 Replies Last reply Reply Quote 0
      • M
        MCU @EdgarM last edited by MCU

        @EdgarM Vielleicht hilft das?
        https://forum.iobroker.net/topic/35906/internetinhalte-auf-wandtablet-ohne-inetzugang-darstellen/47

        1 Reply Last reply Reply Quote 0
        • harrym
          harrym @EdgarM last edited by

          @EdgarM sagte in objekt mit Bild Url auflösen:

          <img src="{bosesoundtouch.0.presets.1.iconUrl}">

          EdgarM 1 Reply Last reply Reply Quote 0
          • EdgarM
            EdgarM Developer @harrym last edited by

            @harrym said in objekt mit Bild Url auflösen:

            @EdgarM sagte in objekt mit Bild Url auflösen:

            <img src="{bosesoundtouch.0.presets.1.iconUrl}">

            Nein, leider nicht. Das widget wird dann gar nicht erst gerendert.

            Error: can't render tplMaListRadio w00004 on "main": conn.js:1167:17
            Error: 0 - SyntaxError: missing : after property idmyEval@http://sm:8082/vis/lib/js/can.custom.min.js:64:548 conn.js:1167:17
            Error: 1 - scan@http://sm:8082/vis/lib/js/can.custom.min.js:64:5958 conn.js:1167:17
            Error: 2 - n@http://sm:8082/vis/lib/js/can.custom.min.js:76:366 conn.js:1167:17
            Error: 3 - n@http://sm:8082/vis/lib/js/can.custom.min.js:76:217 conn.js:1167:17
            Error: 4 - renderer@http://sm:8082/vis/lib/js/can.custom.min.js:76:1876 conn.js:1167:17
            Error: 5 - registerView@http://sm:8082/vis/lib/js/can.custom.min.js:58:3843 conn.js:1167:17
            Error: 6 - o@http://sm:8082/vis/lib/js/can.custom.min.js:58:839 conn.js:1167:17
            
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate

            970
            Online

            31.9k
            Users

            80.2k
            Topics

            1.3m
            Posts

            widget javascript
            3
            4
            233
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo