On Feb 11, 9:40 pm, David Dorward <dorw...@yahoo.comwrote:
Alex K wrote:
Would it be possible to make the browser download a resource using
javascript?
Well, you could do something like:
location = "http://www.example.com/resources/";
Or did you mean "Save to the user's disk"? JS can't write to the local file
system in a typical browser security environment.
I'm aware there could be a security issue but I'm still
wondering if this could be possible. It could save a lot of bandwidth
on the server side.
How? The resource still gets downloaded. Perhaps you just need to look into
configuring your server to send different cache control headers?
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Hi David,
Thank you for your response. Well I'd like to make a simple meta
search engine. Instead of having the server download and screen scrape
the results for a user query, I would rather like to do this process
entirely on the client side (to save bandwidth and to use the client's
ip address for the http request). So for example for a user query, I
would download google, yahoo and ask on the client side. Then
screenscrape the results and display them, all on the client side
using Javascript. I do not want to write to disk but rather to keep
the results html in memory.
Alex