Forum Moderators: open
There is a nifty IIS-provided service that initiates the installation of a remote printer on a client. I've not explored the underlying technology (likely ActiveX) but at any rate it does not work in non-IE out of the box.
thanks
A crude example in another context is document.all, which is an IE-specific method. If you want to manipulate divs (layers by an old name) then
if (document.all) {
// go for it in IE!
}
This will not only allow IE to use this stuff but if any other browsers can, they will. It also avoids having to come back to this years later and update your browser ID methods, which becomes quite a nightmare.
What I'm looking for, however, is a seamless method of allowing the user to click (from whatever browser) a link and get specifically IE. When a user gets our free wifi, we want him to be able to very brainlessly install a printer on our network to use. IIS provides that function, but it's an ActiveX object (instanciated in vbscript, no less..).
thanks
As ActiveX won't work outside of IE, you could make a page using IE conditional comments [msdn.microsoft.com] to display either the IE-specific code or a warning notice to reopen the page in IE.
Find some object specific to the browser you want to target and use the object, not browser UA or version.