HTML5 Tutorial – 46 – Finishing the Drag and Drop Program!

Date: January 12, 2012 |admin | Web Development

Visit my website at thenewboston.com for all of my videos! My Google+ – https My Second YouTube Channel – www.youtube.com

Comments

iVorkuta

Date: December 19, 2011 |

I love you Boston.

megametalpriest

Date: December 19, 2011 |

Bucky just wanted to point out that you forgot to declare your variable mypic with the “var” keyword. I’m sure you know why it’s a good practice to declare variables with the var keyword though.

labratbum

Date: December 19, 2011 |

@animatingpeople This should read “Thumbs up for pain and suffering.”

0pt1muzPr1m3

Date: December 19, 2011 |

“..storing the x and y position of the mouse..” thats really scary if you think about it. Someone can be very devious with that.

TheMajorStudios

Date: December 19, 2011 |

document.getElementById(‘rightbox’).innerHTML = ‘ ‘;

gordonfreeman162

Date: December 19, 2011 |

Bucky, when you finish with these HTML5 tutorials please continue the tutorials for Java Game Development!

takeru53

Date: December 19, 2011 |

Can we get the html of a particular element dynamically? If we have many elements/pics in the rightbox and we want, whenever we start to drag a particular pic, to get the html associated with that pic.

So every element has the dragstart event listener which calls the same function startDrag, and in that function we get the info of the element’s html dynamically.

i.e, var code = e.getElementHTMLOrSomething();

Is there a way to do that?

TjipzPK

Date: December 19, 2011 |

but um drink! drink!

TheJonix55

Date: December 19, 2011 |

@gordonfreeman162 Agreed!

yosimekupelet

Date: December 19, 2011 |

nice

nimmy17

Date: December 20, 2011 |

cool cant wait till the next clip

AleksGSquadron

Date: December 20, 2011 |

Bucky, where do you get your tutorials?

Jozekban

Date: December 20, 2011 |

i had to change
code …

animatingpeople

Date: December 20, 2011 |

@labratbum Well 54 people disagree

labratbum

Date: December 20, 2011 |

@animatingpeople It was a joke, but seriously, trying to learn all the nonsense in C++ from a video alone is pretty futile.

animatingpeople

Date: December 20, 2011 |

@labratbum Ehh.. I wouldnt call it futile and yes I do agree that c++ is a bit unnecessarily complicated but still its a pretty great language to learn at least in my point of view since it was my first language lol

gatoo23

Date: December 20, 2011 |

I did it so that when i dropped it, it came under the text :)

skatiskateSC

Date: December 21, 2011 |

Bucky, when you finish with these HTML5 tutorials please continue the tutorials for Unreal Development Kit!!! Thumb this up

friedchicken1981

Date: December 21, 2011 |

very nice, it would be interesting to see how to dragAndDrop more images and organize them in the order we put them into the box :D then of course change the order if needed

TheRoscielo

Date: December 21, 2011 |

me gusta el trabajo realizado espero mas sobre ese tema gracias me ayudo mucho

thetawaves48

Date: December 24, 2011 |

Is HTML5 basically javascript?

ramisohail

Date: December 24, 2011 |

Thumbs up for advanced c# tutorials

DennisDon

Date: December 25, 2011 |

my request “ASP.NET” and “MS SQL”

persiaTUT

Date: December 25, 2011 |

@thetawaves48 :D

Leave a Comment

Name (required)
Website
Your Message (required)