How can I automatically follow a link in Internet Explorer

I am trying to create an application for printing documents over the internet. I created my document and created a web page with a meta refresh tag according to this:

<meta http-equiv="refresh" content="3;http://example.com/download.epl2" />

      

I specify that the document is of application content type / x -epl2 and I have associated .epl2 files on my computer with a program that silently sends them to the printer.

I have hosted a website in my trusted sites zone.

Internet Explorer currently opens the Open, Save, Undo dialog box without the option to open the file automatically.

Is there an option in IE6 / 7/8 that I can use to make IE just open the file without a prompt?

EDIT

The actual content of the file will differ depending on the job, but essentially it is text that follows the Eltron programming language .

EDIT

I did this in both Chrome and Firefox by selecting "Automatically open files of this type now"

EDIT

The machines this program will run on will effectively be kiosks that are only limited to accessing my website from their web browsers, so I'm not worried about rogue sites sending documents to my printers.

EDIT

I am using PHP to generate server side documents and HTML, although I expect this solution to become language agnostic.

+2


a source to share


8 answers


If you've always had the secret desire to develop your own URL protocol (I know I know), this might be a good excuse to do so. ;-)
http://msdn.microsoft.com/en-us/library/aa767914%28VS. 85% 29.aspx



When you first open such a link in IE, there are 1-2 prompts, but after that you can automatically open them.

+1


a source


I would expect it to be impossible, because then you might stumble upon a site that automatically downloads and prints a 5000 page document or something, which would be bad.



+6


a source


I would use javascript to make this happen.

Javascript window opens

EDIT

Since you are in control of the window, you can use an automation script to interact with the print window. In the meantime, there is no need to worry about it. ”

autoit3: ControlClick

+1


a source


Write a small utility program that does nothing but send the file passed to it on the command line to the system's default printer.

Then edit the registry under HKEY_CLASSES_ROOT

to associate this program with the file type .epl2

.

+1


a source


I don’t have time to research it for you, but there have been many exploits that could be useful. Using ie6 without specific fixes seems to be helpful.

There should also be an option "Auto prompt for file uploads". I am currently using Linux so I cannot use chceck if it helps. I found it in some docs.

0


a source


I'm on Mac right now, but if it's possible in IE, I would guess that this page has an answer for it (or at least hints at it) http://support.microsoft.com/kb/883255

0


a source


I believe you are looking for the setting on Windows, not IE: Microsoft Support: No need to specify download folder for file

0


a source


Try using an older version of IE. Security was weaker in older versions, and since it is not an issue this might be the fastest solution.

0


a source







All Articles