[Pas2js] dataTransfer has a rare performance!??

Pedro Pablo Oviedo Vera verakuba13 at gmail.com
Wed Aug 21 23:22:57 CEST 2019


Hello people,...yes, me again....look:

..if in a function like :
function Arrastrar(aEvent:TJSDragEvent): Boolean;
begin
  aEvent.dataTransfer.setData('Text','<img src="'+
FOrg1.getAttribute('src')+'" >');
end;


with FOrg1.getAttribute('src') >> '/synapse/synapse_logo.gif'

...and later:

function Soltar(aEvent:TJSDragEvent):Boolean;
begin
   FDest.innerHTML:= aEvent.dataTransfer.getData('Text');
   aEvent.preventDefault;
end;
...
why FDest.InnerHTML just shows '/synapse/synapse_logo.gif' instead of  <img
src="/synapse/synapse_logo.gif" > ??

any idea?

Thanks
pp

-- 

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190821/f2a2d9a4/attachment.html>


More information about the Pas2js mailing list