How To Download A File From A Url With Javascript?
How to download a file from a url with Javascript? I'm trying to get from a textfield a user enters a url as follows: new Ext.form.TextField({ disabled: false,
Solution 1:
You can use jQuery to load anything from an URL quite easily with:
<script>
$("#loadhere").load("http://www.google.com");
</script>
Solution 2:
is this done in a browser? If so, you could use Ajax to download plain text or XML. Save yourself a lot of trouble and learn jQuery first, and it'll be quite easy.
Post a Comment for "How To Download A File From A Url With Javascript?"