¡@

Home 

2014/10/16 ¤W¤È 12:02:44

jquery Programming Glossary: currentdragimageid

Javascript wait for image to load before calling Ajax

http://stackoverflow.com/questions/4943495/javascript-wait-for-image-to-load-before-calling-ajax

wait for image to load before calling Ajax function dropResource var imgIndex getImageIndexByID currentDragImageID var newImgID resourceData.length Create the image '#thePage' .append ' img alt Big id imgA' newImgID ' src ' uploadFolder.. newImgID new Array 0 imgIndex imgW imgH imgX imgY alert 'artworkAjaxHandler.ashx type addResource uploadID ' currentDragImageID ' page ' currentPage ' w ' imgW ' h ' imgH ' x ' imgX ' y ' imgY Save this as a resource .ajax url 'artworkAjaxHandler.ashx.. h ' imgH ' x ' imgX ' y ' imgY Save this as a resource .ajax url 'artworkAjaxHandler.ashx type addResource uploadID ' currentDragImageID ' page ' currentPage ' w ' imgW ' h ' imgH ' x ' imgX ' y ' imgY This code adds an image to my drop area once the thumbnail..