Tag Archives: internet explorer

Internet Explorer (IE) and the Cached .js File CodeUnit 13 JAN 2011

Internet Explorer and pretty much all other modern web browsers make use of silent caching in order to streamline user experience. Of course, caching is a marvellous tool when needed, but also a frustrating one when you don’t want it turned on. Enter the humble .js javascript include file.

Now IE likes to cache javascript .js file includes, but unfortunately unlike normal web pages, getting it to refresh its cached copy can sometime prove to be quite difficult to achieve.

So here is the solution then.

Simply add a GET variable to the declaration.

If you never want the file to be cached, attach a randomly generated GET variable to the .js declaration for each page load. If you want to control when it gets refreshed, add a GET variable that you change only when you make actual changes to the .js file itself.

Essentially what happens is that IE recognises the URL as a single string, meaning that if the GET variable has changed, the string’s identity has changed, meaning a brand new URL and thus something it will need to go and collect from the internet.

So how does one’s .js file include look now?

<script type=”text/javascript” src=”myscript.js?ver=1″></script>

Simple, but very effective and well worth jotting down.

Nifty.

Shortcut Keys for Tabbed Browsing CodeUnit 05 FEB 2010

You seriously learn something new every day. I only just found out about keyboard shortcuts to enhance tabbed browsing, something that has been a feature in Firefox (and more recently Internet Explorer) for years already.

And because I fear that there may still be people like me outside there in this great big world of ours, I thought I’d better share these keyboard shortcuts that work across most tabbed browsers with you!

So let’s start then.

In order to open a link in a new tab and jump straight to it, hold down CTRL+SHIFT and click on the link. In order to open it up in a new tab but NOT jump straight to it, simply hold down CTRL and click on the link. CTRL+T will simply open a new empty tab and jump you straight to it.

To jump to the next open tab in your tabbed browser, simply press CTRL+TAB. To reverse through your open tabs, use CTRL+SHIFT+TAB.

CTRL+W will close the tab you are currently focused on.

If you want to jump to a specific tab and you have 8 tabs open, pressing CTRL+n where n is a number between 1 and 8 will jump you directly to that particular tab based on the order in which it currently sits. CTRL+9 generally takes you to the last open tab.

And finally, in Internet Explorer, pressing CTRL+ALT+F4 will close all tabs except for the one you are currently viewing. Also, and probably the coolest of the lot, CTRL+Q opens up a new tab which lists all your currently open tabs with a thumbnail, similar to the way Chrome displays its blank tabs.

So now you know! ;)

How to Turn on Caret Browsing CodeUnit 15 JAN 2010

Instead of just using the mouse to select text and move around within a webpage, you can in fact use the standard navigation (arrow and page-) keys on your keyboard to do this, making in particular specific text selection far more targeted and easier to achieve.

This particular browse mode is referred to as Caret Browsing, named after the caret (the cursor icon) which appears when you edit a text field like in a Word document for instance.

To activate this mode in either FireFox or Internet Explorer 8, simply press the F7 key. This will pop up the following dialog, which if you agree to, switches on the caret browsing mode.

To turn caret browsing off, simply press F7 again.

Internet Explorer: Restore File Download Dialog CodeUnit 07 JAN 2010

If you’re still using Windows XP (hey, not everyone can afford to just upgrade willy nilly), today’s little tutorial is specifically for you.

If in the past you’ve accidentally unchecked that little box reading “Always ask before opening this type of file” when trying to save a file in Internet Explorer and now want to change the behaviour that you previously set, these are the steps you need to follow in order to reclaim your File Download dialog box:

1. Let’s first make sure that this is exactly what you’re looking for, just to know that we are still on the same page:

2. It is? Great. Then your first step in reclaiming this is to open any folder in Windows and then navigate to the Tools menu on the folder menubar and select Folder Options… on it.

3. Next, select the File Types tab and browse down to the file type for which you wish to recover the File Download dialog. Click on the Advanced button once you have selected the affected file type.
4. On the resulting modal dialog, check the Confirm open after download option. (Note. Even if it is currently checked, uncheck it and then check it again. This forces the registry change for just in case).
You should now have your bright and shiny File Download dialog back in place, easily tested by trying to download a new file off the Net with that particular file extension you just restored.