javascript - using hta with frameset - drop image does not work -


i working framesets in local hta (html-application) in internet explorer 10+.
want drop files (images) dropzone (div or body). - hta without frames works - htm , without frames works (all browsers) - hta frames show image in frame

index.hta:

<frameset cols="40%,60%" >   <frame src="start1.htm" name="start1" application="yes" >   <frame src="start2.htm" name="start2" application="yes" > </frameset> 

start1.htm

<html> <body ondragstart="return false;"> <div id="dropspot" style="border: 1px dashed #555; height: 200px"> </div>  function init()  {   // set drop-event handlers.   var droparea = document.getelementbyid("dropspot");   droparea.addeventlistener("drop", drophandler, false);   droparea.addeventlistener("dragover", donothing, false); } function drophandler(event) {   // use our donothing() function prevent default processing.    donothing(event);   // file(s) dropped.   var filelist =  event.datatransfer.files;   if (!filelist) return;  // if null, exit   var filecount = filelist.length;  // number of dropped files   if (filecount > 0)    {       alert("it works");   }  } // prevents event continuing our handlers can process event. function donothing(event) {   event.stoppropagation();   event.preventdefault(); } init(); 

in hta drophandler() not called. ideas? thx armin


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -