[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Anyone came across with this idea?
Page 1 of 1

Anyone came across with this idea?

PostPosted: Wed Jul 08, 2009 10:50 am
by dc2698

PostPosted: Thu Jul 09, 2009 7:17 am
by dc2698
Thanks Chris for your great reply!

I see the main code I need is window.location.href="[some_file_here]"; in the drop area.

Now in http://www.dhtmlgoodies.com/scripts/dra ... rop-1.html, I can change <div class="dragableBox" id="box1">download_file.zip</div>

Add window.location.href=document.getElementById(idOfDraggedItem).innerHTML;
in the dropItems() to initiate the file download.

Thank you very much!