HighDots Forums  

urldownloadtocachefile

Javascript JavaScript language (comp.lang.javascript)


Discuss urldownloadtocachefile in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Clive Moore
 
Posts: n/a

Default urldownloadtocachefile - 06-01-2005 , 04:44 AM






Does anyone know if it is possible to call urldownloadtocachefile() from
javascript? I need to download a file from a url to a temp directory
for printing.

Thanks
Clive


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

Reply With Quote
  #2  
Old   
Grant Wagner
 
Posts: n/a

Default Re: urldownloadtocachefile - 06-01-2005 , 11:07 AM






"Clive Moore" <helloclive (AT) hotmail (DOT) com> wrote

Quote:
Does anyone know if it is possible to call urldownloadtocachefile()
from
javascript? I need to download a file from a url to a temp directory
for printing.
I'm going to assume you're talking about IE on Windows only here,
because there would be no way of using URLDownloadToCacheFile() from
other browsers without having them execute a WSH script or something
(assuming the other browser is even running on Windows).

There is no way to do this in the default browser security environment.
Besides, the only control you have over printing in the default browser
security environment would be to call window.print();

The way to retrieve a document into the cache is to load it in a browser
instance:

var w = window.open('yourpage.html');

or set the location of a <frame> or <iframe>. Then call window.print();

However, it appears you want far more control than this, which means you
probably want to host your application in a HTA <url:
http://msdn.microsoft.com/workshop/a...taoverview.asp
/>.

--
Grant Wagner <gwagner (AT) agricoreunited (DOT) com>
comp.lang.javascript FAQ - http://jibbering.com/faq




Reply With Quote
  #3  
Old   
Clive Moore
 
Posts: n/a

Default Re: urldownloadtocachefile - 06-01-2005 , 12:36 PM



Thanks For the Reply Grant.

I have an (3rd party) ActiveX control that can handle printing so long
as i pass
a File location on the client pc (not a url). This activex object
is called from javascript. What i am trying to do is figue a way to
copy the file(s) from the web server to the client machine and in so
doing
pass the path to the activeX control for printing.

I dont want the user to have any interaction (e.g. popup dialogs etc).

Any Ideas?

Thanks Again
Clive





--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.