<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Hi,</p>
<p><br>
</p>
<p>There might be another way to do so. I'm oftenly using the "Background selector<a href="https://github.com/3liz/lizmap-javascript-scripts/blob/master/library/ui/background_selector"></a>" script in this github repo
<a href="https://github.com/3liz/lizmap-javascript-scripts" class="OWAAutoLink" id="LPlnk784846" previewremoved="true">
https://github.com/3liz/lizmap-javascript-scripts</a>, and it seems doing this.</p>
<p>In the JS file :</p>
<ul style="margin-bottom:0px; margin-top:0px">
<li>On a click event you create a div and add it to html</li></ul>
<div>In the css file :</div>
<div>
<ul style="margin-bottom:0px; margin-top:0px">
<li>You define style of your created div.</li></ul>
<div><br>
</div>
<div>Regards.</div>
<div><br>
</div>
<div>Antoine.<br>
</div>
</div>
<p><br>
</p>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Lizmap <lizmap-bounces@lists.osgeo.org> de la part de Etienne Trimaille <etrimaille@3liz.com><br>
<b>Envoyé :</b> jeudi 11 août 2022 12:12<br>
<b>À :</b> Marin M; Peter Berger; lizmap@lists.osgeo.org<br>
<b>Objet :</b> Re: [Lizmap] HTML in media folder (Lizmap)</font>
<div> </div>
</div>
<div>
<p>Hi,<br>
</p>
<p>I haven't tried, but an HTML media file should be loaded in the popup. Not included as an iframe. Maybe it's not exactly what you wanted. Just for your information<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://docs.lizmap.com/current/en/publish/configuration/popup.html#usage-of-media-images-documents-etc" id="LPlnk273127" previewremoved="true">https://docs.lizmap.com/current/en/publish/configuration/popup.html#usage-of-media-images-documents-etc</a></p>
<p>> For a given feature, using a path in your field starting by <code class="docutils literal notranslate">
<span class="pre">media/</span></code>, Lizmap will display:</p>
<ul class="simple">
<li><strong>the content</strong> for txt or HTML files </li></ul>
<div class="moz-cite-prefix">On 11/08/2022 09:36, Marin M wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I thought If there is possibility to input JS then it would be logic to couple-in HTML</div>
<div><br>
</div>
<div>Maybe wishful thinking. But could be cool</div>
<div><br>
</div>
<div>B regards,</div>
<div><br>
</div>
<div>Marin Mirosevic</div>
<div><br>
</div>
<br>
<br>
Dana ponedjeljak, 18. srpnja 2022. Peter Berger <<a href="mailto:peter.berger@bluewin.ch" target="_blank" class="moz-txt-link-freetext">peter.berger@bluewin.ch</a>> piše:</div>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
        0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
Interesting question. Hope somebody can help.<br>
<br>
Peter<br>
<br>
Von meinem iPhone gesendet<br>
<br>
> Am 18.07.2022 um 17:20 schrieb Marin M <<a href="mailto:marin.mirosevic@gmail.com" target="_blank" class="moz-txt-link-freetext">marin.mirosevic@gmail.com</a>>:<br>
> <br>
> <br>
> hi,<br>
> <br>
> is it possible ,in addition to the Javascript file, to have an HTML file connected to it , in the media folder .<br>
> <br>
> My intention would be, when a feature  is selected/clicked on a lizmap web client, that Javascript calls a div  ID which has an iframe defined on it.<br>
> <br>
> Is it possible at all to do coupled HTML/Javascript in the Media folder Lizmap`?<br>
> <br>
> If so, how ?I tried and it seems it is not working. Or am I doing something wrong ?<br>
> <br>
> best regards<br>
> _______________________________________________<br>
> Lizmap mailing list<br>
> <a href="mailto:Lizmap@lists.osgeo.org" target="_blank" class="moz-txt-link-freetext">
Lizmap@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/lizmap" target="_blank" class="moz-txt-link-freetext">
https://lists.osgeo.org/mailman/listinfo/lizmap</a><br>
<br>
</blockquote>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre">_______________________________________________
Lizmap mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lizmap@lists.osgeo.org">Lizmap@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/lizmap">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<p><span style="font-weight:bold; color:#9ACD32">Etienne Trimaille</span> <br>
Géomaticien <br>
<a href="http://www.3liz.com" style="text-decoration:none; color:#9ACD32">www.3liz.com</a>
<br>
<span style="font-size:0.8em"><br>
<b>Tel.</b> 06 12 93 11 39 <br>
<b>Bureau</b> <br>
31, rue de l'Argenterie <br>
34000 Montpellier <br>
<b>Siège social</b> <br>
73, allée Kleber <br>
Boulevard de Strasbourg <br>
34000 Montpellier </span></p>
<p><br>
</p>
</div>
<br>
<br>
<font style="background-color:#ffffff">
<p align="center"><font style="background-color:#ffffff">Cliquez <a href="https://www.mailcontrol.com/sr/IZP0hfFtpfbGX2PQPOmvUmaGI8Tu3yGrXzpJwO3oUj389YPmav-99AZJo3Z41zkS7cDW6vO5F9cgL4AI7al_HQ==">
ici</a> pour signaler ce message comme étant du spam.</font></p>
</font></div>
</div>
</body>
</html>