[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?
Advertisement

Anyone came across with this idea?

Moderators: Calcifer, slothy

Anyone came across with this idea?

Postby dc2698 » Wed Jul 08, 2009 10:50 am

dc2698
 
Posts: 3
Joined: Sat Jul 04, 2009 5:47 pm

Postby dc2698 » Thu Jul 09, 2009 7:17 am

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!
dc2698
 
Posts: 3
Joined: Sat Jul 04, 2009 5:47 pm


Return to Drag and drop scripts

Who is online

Users browsing this forum: No registered users and 17 guests

cron