I've been fiddling with WebGL lately, and have gotten a Collada reader working. Problem is it's pretty slow (Collada is a very verbose format), so I'm going to start converting files to a easier to use format (probably JSON). I already...
I want to send an  "ajax download request" when I click on a button, so I tried in this way:  javascript:  var xhr = new XMLHttpRequest(); xhr.open("GET", "download.php"); xhr.send();   download.php:  <? header("Cache...
How do you set the name of a blob file in JavaScript when force downloading it through window.location?  function newFile(data) {     var json = JSON.stringify(data);     var blob = new Blob([json], {type: "octet/stream"});     var url  = w...
I have sensitive files to download to users, and each user is permitted to download a given file exactly once.  If the download fails, I want to permit the re-download, but not otherwise.  It's not sufficient to rely on logging/processing the f...
I want to redirect the user to a different webpage after they click a hyperlink which allows them to download a file. However since they need to make a choice in the open/save file dialog, I don't want to redirect them until they accept the dow...
Update 20140702:   The solution Detailed answer as a blog post   (but I'm marking one of the other answers as accepted instead of my own, as it got me halfway there, and to reward the effort)    It appears that setting a HTTP request header is...
All the current tutorials on making your own youtube video downloader are outdated. The whole token insertion from video info does not work, and neither does using the javascript method. Does anyone know of a way to do this currently without just dow...
I searched quite a lot for an answer on the web and found nothing.  Is there a way to get the download path of a browser via Javascript?   I don't want to set the path myself i just wanna know where my file goes after been downloaded by the user....
I have a web page which a user can download a PDF file via an ASP.NET web handler (.ashx). It is implemented like the answer in this question. The problem I have is when I do do this window.top.location.href = url; in my JavaScript I have no real con...
I am trying to download a file using AJAX call. I need to use AJAX call because I have to make a post request along with that I need to send some headers from the client. As Server API is not under our control, we don't have much choice other tha...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.