<div dir="ltr"><div>it;s works....thanks!!!</div><div><br></div><div>Saludos</div><div>pp<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 22 ago. 2019 a las 2:48, Michael Van Canneyt (<<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Wed, 21 Aug 2019, Pedro Pablo Oviedo Vera wrote:<br>
<br>
> Hello people,...yes, me again....look:<br>
><br>
> ..if in a function like :<br>
> function Arrastrar(aEvent:TJSDragEvent): Boolean;<br>
> begin<br>
> aEvent.dataTransfer.setData('Text','<img src="'+<br>
> FOrg1.getAttribute('src')+'" >');<br>
> end;<br>
><br>
><br>
> with FOrg1.getAttribute('src') >> '/synapse/synapse_logo.gif'<br>
><br>
> ...and later:<br>
><br>
> function Soltar(aEvent:TJSDragEvent):Boolean;<br>
> begin<br>
> FDest.innerHTML:= aEvent.dataTransfer.getData('Text');<br>
> aEvent.preventDefault;<br>
> end;<br>
> ...<br>
> why FDest.InnerHTML just shows '/synapse/synapse_logo.gif' instead of <img<br>
> src="/synapse/synapse_logo.gif" > ??<br>
><br>
> any idea?<br>
<br>
Try logging aEvent.dataTransfer.getData('Text') in your Soltar event. I<br>
suspect that because you use Text, it transforms whatever is inside the data<br>
to plain text. If so, try using 'text/html' instead of Text.<br>
<br>
Michael.<br>
_______________________________________________<br>
Pas2js maillist - <a href="mailto:Pas2js@lists.freepascal.org" target="_blank">Pas2js@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><pre style="color:rgb(0,0,0);font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">MSc. Ing. Pedro Pablo Oviedo Vera
Dirección Técnica y Desarrollo
Empresa de Proyectos e Ingeniería del
Ministerio de la Agricultura.ENPA.
Boyeros y Conill, Piso 10 Edif MINAG
Telef. 884 7197
SIP:23000116</pre></div></div>