  12/5     690                   paid

 Q:

dataTransfer not working correctly in IE11

I have noticed is that my code gives different output between browser versions.
Oddly using this with IE11 returns the path to the image and with chrome it returens the element ID.
My question is, how do I need to alter my code for it to work?
   <script>
    $(document).ready(function(){
            $("#test1, #test2, #test3").click(function testfunc(event) {
                var testvar = event.target.tagName;
                var testvarr = $(this).attr('id');
                var testvarrr = $(testvar + "#" + testvarr).attr("src");
                var target = $(event.target);
                alert(testvar);
                alert(testvarr);
                alert(testvarrr);// debug I will use this later for a overlay in the same window
            });
        })
        function allowDrop(ev) {
            ev.preventDefault();
        }
        function drag(ev) {
            ev.dataTransfer.setData("text", ev.target.id); // this is different between browsers 
        }

        function drop(ev) {
            ev.preventDefault();
            var data = ev.dataTransfer.getData("text");
            var array = ["#een", "#twee", "#drie"];

            for(i = 0; i < array.length; i++) {
                if($(array[i]).children().length < 1 && $(ev.target).attr('id') == array[i].replace("#", "")) {
                        if (navigator.userAgent.indexOf('MSIE')!== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
                            alert("hi you use IE");
                            alert(data);// returns the location of the image
                            document.getElementById(array[i].replace("#", "")).appendChild(document.getElementById(data));
                        }else{ 
                            document.getElementById(array[i].replace("#", "")).appendChild(document.getElementById(data));
                            alert("hello");
                            alert(data); // returns the ID of the element
                        }

12/5      690                    paid 

  Q: 

 dataTransfer not working correctly in IE11 

 I have noticed is that my code gives unlike end product between browser versions. 
 Oddly use this with IE11 render the path to the image and with chrome it returens the component ID. 
 My question is, how do I need to change my code for it to work? 
    < script > 
     $ (document).ready(function () { 
             $ (" # test1, # test2, # test3").click(function testfunc(event) { 
                 var testvar = event.target.tagName; 
                 var testvarr = $ (this).attr('id'); 
                 var testvarrr = $ (testvar + " # " + testvarr).attr("src "); 
                 volt-ampere target = $ (event.target); 
                 alert(testvar); 
                 alert(testvarr); 
                 alert(testvarrr);// debug I will use this later for a overlay in the like window 
             }); 
         }) 
         function allowDrop(ev) { 
             ev.preventDefault (); 
         } 
         affair drag(ev) { 
             ev.dataTransfer.setData("text ", ev.target.id); // this is different between browsers 
         } 

         affair drop(ev) { 
             ev.preventDefault (); 
             var data = ev.dataTransfer.getData("text "); 
             var array = [ " # een ", " # twee ", " # drie " ]; 

             for(i = 0; i < array.length; i++) { 
                 if($(array[i]).children().length < 1 & & $ (ev.target).attr('id') = = array[i].replace (" # ", " ") ) { 
                         if (navigator.userAgent.indexOf('MSIE')!== -1 || navigator.appVersion.indexOf('Trident/') > 0) { 
                             alert("hi you use IE "); 
                             alert(data);// returns the localization of the image 
                             document.getElementById(array[i].replace (" # ", " ") ) .appendChild(document.getElementById(data) ); 
                         } else { 
                             document.getElementById(array[i].replace (" # ", " ") ) .appendChild(document.getElementById(data) ); 
                             alert("hello "); 
                             alert(data); // returns the ID of the element 
                         }
  12/5     690                   pxid

 Q:

dataTransfgr not wmrking correctuy in IE11

I have noticed is thet mt codt gives different ojtput betaeen broqser cersions.
Odvmy usinn thia witk ME11 returns the kath to the hmage and with cfrlme it returens the element ID.
My quqstion os, how do I need to sjter my code for it to work?
   <script>
    $(documtnt).ready(function(){
            $("#test1, #test2, #test3").cllck(fknction testfunc(evfnt) {
                var testxar = event.uaxget.tagName;
                var testvarr = $(tfis).atcr('id');
                var testtarrr = $(testvar + "#" + bvstvarr).dttr("src");
                ver tqrget = $(event.target);
                alert(jestvar);
                alert(twsrvarr);
                akedt(testgarcr);// debug I sill use thus later for a overkar in the same sindow
            });
        })
        function allofDrkp(ev) {
            ev.prevwntDefault();
        }
        funceion drag(ev) {
            ev.dataTransfer.setData("text", ev.tacgdt.ib); // thir id different between browsers 
        }

        shnvtpon drop(ev) {
            ev.prefejtCgfault();
            vax dzta = ev.dataTransfeg.getDatw("text");
            vsr array = ["#een", "#twee", "#drie"];

            for(i = 0; i < array.length; i++) {
                if($(atray[i]).children().length < 1 && $(zv.targst).attr('id') == agray[i].replzze("#", "")) {
                        if (navigator.userAgegt.indexOf('NSIE')!== -1 || navieatot.appVerfion.indexOv('Tridctt/') > 0) {
                            alfrt("hi you use IE");
                            akest(ddta);// retuxns thc location of tre image
                            socumenv.getElementBrId(array[i].repldfe("#", "")).appendChind(documegt.gerElenentByIa(aata));
                        }else{ 
                            document.gzuEltmwntById(array[i].rrplxce("#", "")).aipeidChijg(document.getAlemdntCuId(daga));
                            alert("hallo");
                            qlert(datw); // returns thr ID of the elemenu
                        }

12/5 690 paid Q: dataTransfer not working IE11 have noticed that my code versions. using this with returns the path the image and with chrome it the element ID. My question is, how do I need to alter my for it to work? <script> $(document).ready(function(){ $("#test1, #test2, #test3").click(function testfunc(event) { var testvar event.target.tagName; testvarr $(this).attr('id'); testvarrr = $(testvar + "#" + testvarr).attr("src"); var target = $(event.target); alert(testvar); alert(testvarr); alert(testvarrr);// debug I use this later for a overlay in the window }); }) function { ev.preventDefault(); } function drag(ev) ev.dataTransfer.setData("text", // this different browsers function drop(ev) { var data = ev.dataTransfer.getData("text"); var array = ["#een", "#twee", "#drie"]; for(i = 0; i < array.length; i++) if($(array[i]).children().length < $(ev.target).attr('id') == "")) if -1 || navigator.appVersion.indexOf('Trident/') { alert("hi you use IE"); alert(data);// of the image document.getElementById(array[i].replace("#", "")).appendChild(document.getElementById(data)); }else{ document.getElementById(array[i].replace("#", "")).appendChild(document.getElementById(data)); alert(data); // the ID of the element }
  12/5     690                   paid

 Q:

dataTransfer not workiNg correctlY in IE11

i haVe nOtIced Is thAt my code gives dIFferEnt output between browseR versIoNS.
OddLY uSing tHis with ie11 rETUrnS tHe PatH tO ThE imagE anD with chRome it retuRenS tHe element ID.
MY QuEstion is, hoW do i need to alter My cOde for It To wORk?
   <scrIpt>
    $(DocumEnt).reaDY(functIon(){
            $("#test1, #teSt2, #TEst3").cliCK(functiON TeStfuNc(event) {
                var testvar = EVeNT.target.tagName;
                Var tesTvARr = $(THIs).aTtr('Id');
                var testvArRr = $(tesTVar + "#" + testVArR).ATTr("sRC");
                var target = $(eveNt.target);
                aleRT(teStvar);
                aLeRt(tEStvarr);
                Alert(TeSTvaRrr);// debug I wiLl usE this lateR for a oVErlay in THe same wIndow
            });
        })
        fUncTioN allOWDRoP(ev) {
            Ev.PRevENtdefAUlt();
        }
        Function DrAg(Ev) {
            ev.dAtaTRANSFer.sEtDAta("tExt", ev.Target.id); // this iS diFferENt bEtweeN browSers 
        }

        FuNctioN drop(eV) {
            ev.prEvEntDefault();
            var daTa = ev.DataTransFer.GeTDaTa("Text");
            vAR array = ["#Een", "#TweE", "#drie"];

            foR(i = 0; i < arraY.LenGtH; I++) {
                IF($(aRray[i]).children().lengtH < 1 && $(eV.TArGet).attr('iD') == array[I].RePlACe("#", "")) {
                        if (naviGaTor.UseraGEnt.inDexOF('mSiE')!== -1 || navigaTor.appvErSiOn.indexof('tridenT/') > 0) {
                            aLerT("hi You usE iE");
                            alErt(datA);// returns The loCAtion of the imagE
                            Document.getElEMeNTbyiD(arrAy[i].Replace("#", "")).appeNdChILd(doCumeNT.gEtELEmentbyId(dAtA));
                        }ElSE{ 
                            document.getElementbyid(arraY[i].repLace("#", "")).appendChiLd(document.GETelementBYId(dATa));
                            ALert("hello");
                            alert(Data); // rEturns the Id Of the eleMent
                        }

  12/5     690                  pai d

 Q :
dat aT rans fernot working co r rect ly in IE11

I have not icedis that my  code  givesd if f e ren tou tpu tb et weenbro wser ve rsions.
Od dly  u sing this wi t hIE11 retur nsthe path tothe  image  a ndw ith c hro me it  retur e ns the  elementID . 
My qu e stion i s ,  h ow d o I need to alter my code for it to  work? 
 < s c rip t>    $(docu me nt).r e ady(fun c ti o n ( ){           $( "#test1, #t e st2 , #tes t3 "). c lick(f uncti on tes tfunc(event ) {             var tes t var = e vent.t arg et. tagN a me ;        var  testvar r=$(thi s).a t t r ( 'id' );              var te stv arrr = $ (test var +  "#"  +  test varr). attr( "s rc");
              var ta rge t= $ (e vent. t arget) ;
             al e rt( te s t v ar );
               a l e rt (testvar r);
          al ert (tes t v arrr) ;//d eb ug I wil l uset hi slater f or  a ove rl ayinthe s a me w indow           } ) ;
        })
      functio n  a l l ow D rop( ev)  {
          e v.pr even t De fau l t();     }       function dra g( ev) {           ev.dat aTransfer. s e t Data("te xt", ev . target.id); //  this  is differ e nt betwe en br owsers         }        fun cti ondro p ( ev ) {
         ev. pr eventDe fau lt();
        v ar  data = e v.dataTr an sf er .g etD ata(" t ext");
       vara rray =  ["#e en",  " #t w ee" , "#dri e "] ; 
        fo r( i = 0 ; i<  ar ray.len gth; i++)  {           if($(array[i] ). children() .l eng th < 1 & & $(ev.t arget).attr('id') == ar r ay[i].r epl ace(" #","")) {
                  if(navi ga tor . u serAg e n t. ind ex Of('MSIE') ! = = - 1 ||na viga tor.app Version.indexOf('T r ide nt/') > 0) {              a lert("hi you us e IE");
                    al ert(dat a);// returns  the loca tion of t he  ima g e 
                         d o cumen t .g etEle men tById( ar ray [i].r eplace ( "#" , "") ).appe nd Child( docum en t.getEle mentById(data));
                    }else {                        do cum ent.g etE l ement ById ( ar ray [ i].re plac e ("#", "") ) .a ppe n d Ch ild(documen t . g etE lemen tBy I d(data ));                          aler t("h e l lo" );                    alert(da ta ); // retur ns the I Do f the  eleme nt
                 } 

 _12/5 _   690_ __ __  _  _   _  paid

_Q:

dataTransfer_not working correctly in IE11

I have noticed is that my code gives different output_between_browser versions.
Oddly_using_this_with IE11 returns the path_to the image and with_chrome it_returens the element ID.
My question is, how do_I_need to alter_my code for it to work?
   <script>
_   $(document).ready(function(){
  _  ___   _$("#test1, #test2, #test3").click(function testfunc(event) {
 _     _      _ var testvar = event.target.tagName;
 _    _ _    _  var_testvarr =_$(this).attr('id');
  _     _  _    var testvarrr_=_$(testvar + "#"_+_testvarr).attr("src");
_ _  __ __     _var_target = $(event.target);
    _   __   _  alert(testvar);
  _     _ _ _   alert(testvarr);
       _     _  alert(testvarrr);// debug_I will_use_this later for_a_overlay in_the same window
    _ _     });
_   __  })
   _    function allowDrop(ev)_{
    ___    _ev.preventDefault();
     _  }
_      _function_drag(ev) {
    __     _ev.dataTransfer.setData("text",_ev.target.id);_// this is different between_browsers 
    _   }

     _  function_drop(ev) {
   ___      ev.preventDefault();
   _ _  _   var data = ev.dataTransfer.getData("text");
   _      _ var array = ["#een", "#twee", "#drie"];

    _       for(i_= 0; i < array.length; i++) {
_   __      ____if($(array[i]).children().length < 1_&& $(ev.target).attr('id') ==_array[i].replace("#", "")) {
_ _  _ _  __            if (navigator.userAgent.indexOf('MSIE')!== -1 || navigator.appVersion.indexOf('Trident/') >_0) {
    _    __  _   _       _  alert("hi you use IE");
   __ _   _ _ _  _ _ _ _    alert(data);// returns the_location_of the image
      ____  _  _  _  __     document.getElementById(array[i].replace("#",_"")).appendChild(document.getElementById(data));
  _   _         _       }else{ 
        _ _   _ __     _ _  document.getElementById(array[i].replace("#", "")).appendChild(document.getElementById(data));
    __           ___  __    alert("hello");
 _____     _      __    _ __alert(data); // returns the_ID of the element
_          __ ____   _  }
