Invalid Property in Internet Explorer
I recently spent an hour trying to figure out why once piece of JavaScript code was working fine in FireFox but not in Internet Explorer.
When I eventually installed some IE JavaScript debugging tools and pinpointed the problem I was surprised to find that it was my used of a colours name. Apparently IE does not support grey as a colour and you must specifically give the hexadecimal colour value. It was only for testing that this code was been used but I learnt my lesson the hard way and will never again be using colour names.
I hope this helps someone else with the same problem along the way. Got to love IE right
Custom Sorting with IComparer and IComparable
I recently developed an application using VB.NET to preview movies located on my media server. I decided to develop this application when I got sick of opening the movie folder, clicking the backdrop image to see if I remembered the movie and then opening the XML file to view the meta data.
You may ask why I have my movies stored within folders anyway but the answer is simple. This is the format media browser (a windows media centre plug-in) prefers them so it can store relevant meta data and backdrop images for each movie. Unfortunately unless you use window media centre on every computer the movies become a real pain to view manually through explorer.
Programmatically Rotate PDF Files
The Problem:
A friend’s work photocopier continually scans files in with the wrong page orientation which is obviously both annoying and time consuming going through each PDF file changing the page orientation.
After spending a few hours searching on Google I was unable to find a quick fix to this problem so my next stop was the adobe forums. A quick search their revealed a only one topic with someone posting about the exact same problem but other than a totally unhelpful reply from an Adobe employee saying look in the Acrobat API there was no solution.
Generating your website menu using SimpleXML and PHP
I recently reviewed the design of the dynamic menu used by Mandurah Web for navigation around their website. The decision to update the way the menu was generated fell down to a few reasons:
- A XML menu would be easier to maintain
- The menu file could be used to generate a sitemap.
- The menu file could be used to generate a Google sitemap.
If you have ever seen an XML file you probably know what I mean when I say easy to maintain. It reads very much like English and is on the most part easily understood. If you are new to XML keep reading for an explanation further down.
IStockphoto Voucher, Discounts and Free Images
The other day the time came for me to bite the bullet and pay the rather expensive prices tagged on the images over at IStock. When I went to purchase my credit's I noticed the option to enter a coupon code and with little hope I figured a quick google was neccessary.
Much to my suprise and delight of course I came accross this site with a range of coupons for IStockPhoto, and the coupon code which gave me 20% of for a purchase of 50 credits or over.
Hope someone else benefits from this also.
Object doesn’t Support this Property or Method
Well if you have reached this post then you was probably having the same problem as me. At first the error message might seem quite generic but when I tell you what was causing the error for me it will all make sense.
In my case I had a div with the same id as a JavaScript variable on the same page. So once my page had been parsed up to the div the JavaScript variable/object which was declared before the div was no longer a valid object and any calls to methods or properties of that object further down the page were invalid / not supported.
Only a small post this time round as I have been working on a few bigger projects. Will hopefully get them into writing and post them here shortly
Once again if anyone has had a similar error or is still struggling with this error message use the comments section below and I will try my best to help.