Testing image posting using Flickr’s Share.
Recently working on a site, which used a customized version of AjaxFileUpload to upload files, I encountered an issue with Internet Explorer. When uploading it in IE 8 and IE 9, browser would just jump directly to ‘success’ part of the function, without actually posting anything to the specified URL.
The scenario was following:
Clicking on a
button would trigger
click event of a hidden
file type input (
visibility: hidden), which had ajaxFileUpload function on it’s
onchange event. This works fine in most browsers, except that Internet Explorer doesn’t post
file type fields when they are not manually clicked on by the user or when they are hidden.
Once that was figured out, you can use various things to workaround it. We choose to use SI.files jQuery plugin, which shows image in place of file type input. Only thing to make sure with the plugin is that the image should be over the ‘browse’ button, not the text field where it shows path of the file, or it would require double click in Internet Explorer, and also show text selection cursor instead of pointer cursor. Other than that, it works flawlessly over all browsers (at least the ones we tested).
2012 has been a slow year for reading, I only read 25 books, out of which 9 were re-reads of Wheel of Time series in preparation of the final book release, ‘A Memory of Light’. I also got to read a few book I have been meaning to read for a while but hadn’t been able to get around to them before, including 1984 and Flash Forward.
Here is the complete list of books I read in 2012, arranged by time of reading:
- Zen and the Art of Motorcycle Maintenance by Robert M. Prisig
- The Last Song by Nicholas Sparks
- Flash Forward by Robert J. Sawyer
- Gardens of the Moon by Steven Erikson (Malazan Book of the Fallen book 1)
- Deadhouse Gates by Steven Erikson (Malazan Book of the Fallen book 2)
- If Only It Were True by Marc Levy
- The Lottery : Nine Science Fiction Stories by Lucy Sussex (Short story collection by various writers)
- Mistborn by Brandon Sanderson (Mistborn book 1)
- The Well of Ascension by Brandon Sanderson (Mistborn book 2)
- The Hero of Ages by Bradon Sanderson (Mistborn book 3)
- Nineteen Eighty-Four by George Orwell
- The Book of Saladin by Tariq Ali
- Jurasic Park by Michael Crichton
- Wyrd Sisters by Terry Paratchett
- Life of Pi: A Novel by Yann Martel
- Pyramids by Terry Paratchett
- The Eye of the World by Robert Jordan (Wheel of Time book 1)
- The Great Hunt by Robert Jordan (Wheel of Time book 2)
- The Dragon Reborn by Robert Jordan (Wheel of Time book 3)
- The Shadow Rising by Robert Jordan (Wheel of Time book 4)
- The Fires of Heaven by Robert Jordan (Wheel of Time book 5)
- Lord of Chaos by Robert Jordan (Wheel of Time book 6)
- A Crown of Swords by Robert Jordan (Wheel of Time book 7)
- The Path of Daggers by Robert Jordan (Wheel of Time book 8)
- Winter’s Heart by Robert Jordan (Wheel of Time book 9)
Due to my job, I don’t have as much available time now as I used to, but I hope to increase the count this year, let’s see how it goes.
After a long hiatus, I’ve finally set up my site again!
I am not going to restore old posts, as it’s mostly a personal blog, there wasn’t much there worth restoring. So, if you came here from some old link, looking for something, I am sorry, but it is gone forever now.