|
A pot for storing all the bits of ColdFusion code and findings I've made so I never forget them again! Sat, 07 Jun 2008 10:41:00 +0200 As you can see, I'm using Raymond Camdens excellent blog here. I recently tried to create a pod with some Javascript in it but every time I save the content the <SCRIPT...> tags gets converted to <INVALIDTAG...> - After some Googling and looking at a blog entry in Ramonds site it got me thinking about a workaround. The problem lies with ColdFusion's cross site scripting tool. If for any reason you can't disable it or don't want to for security reasons the the code attached can sort this out for you. There are 2 files that need creating - One in the client folder and one in the admin folder. They run at the end of the request and use the GetPageContext() function to replace INVALIDTAG which ColdFusion has already replaced and convert it back to a SCRIPT tag. onRequestEnd.cfm to go into the blog /client/ folder
onRequestEnd.cfm to go into the blog /client/admin/ folder<cfinclude template="../onRequestEnd.cfm"> Fri, 06 Jun 2008 08:53:00 +0200 I absolutely love Xara and have done for the past 8 years or more. It is simply one of the fastest and easiest graphics packages available - And cheap too!!! I use Xara for producing advertising materials, website designs and animations. It is the sheer speed and ease of use that makes it one of the MUST HAVE software products in my arsenal. Over the years I have amassed a large library of truetype fonts (about 1800) which until now I have had to install to get them to work properly with Xara. The problem is that, to use the 'Add disc fonts' option of Xara, you must have a pre-compiled XaraInfo folder which contains the preview bitmaps of the fonts. Xara does not come with an application to create these font indexes so a bit of Googling was required. Enter 'The font box' - I found a forum post where people were having a similair problem and on the last page of the post I found an application for download which did exactly what I needed OK, the program is a little rough around the edges but does exactly what it says on the tin. Dead easy to use:-
I must express a big thank you to AntiMix for writing a tool which SHOULD be installed as part of Xara. Download it here Thanks again Antimix attached file: type: application/octet-stream size: 842.92 KB here Wed, 28 May 2008 12:43:00 +0200 As I've not posted anything for a short while. I thought I'd let you have a look at my YouTube page that I created when I went to Australia. There's not much on it at the moment but hopefully if I go away again it'll be updated. Thu, 15 May 2008 08:42:00 +0200 Well, my recent car lease has come to an end so I thought I'd better get a shift on and buy a new car. Fortunately I've been working in the motor industry for quite a while now. The quandry... Buy or lease? Leasing is great but having to put 2 months deposit down can be a bit of a p.i.t.a. So for once, I thought I'd buy a car. Once that was sorted, I started looking round the interweb to find the best deal I could. After a few hours, I came across Drive the deal. The site may look a little basic but geez, the prices were good. They have a really powerful new car search which drills you right down to the car you're interested in. I spoke to a guy there called Richard and he sorted me out with a really amazing deal on a new Audi TT. I've always fancied a little sports car but now I can actually afford one!! Wooohoo! So, in the next couple of weeks my trusty E-class goes back to Bank of Scotland and I'll be taking delivery of my new TT. Thanks Richard. Have a look for yourself at www.drivethedeal.com Fri, 07 Mar 2008 19:03:00 +0100 Crikey - Yet another car leasing website... I've been busy over the Christmas period getting yet another website ready for the new year. Crystal Lease specialise in business contract hire, personal contract hire and van leasing for small to large companies. Have a look at their site now to see what you think. Visit: www.crystallease.co.uk Sat, 23 Feb 2008 13:53:00 +0100 We have just completed work on a re-vamped website for John Williams Home Improvements. John Williams are a North Wales home improvement company specialising in conservatories and replacement windows. They have been established since 1969 and have a reputation which is second to none. John Williams have some of the UK's finest windows in North Wales. Have a look at the website now to see what you think. Fri, 11 Jan 2008 09:42:00 +0100 To validate an email address in ColdFusion, we use the regular expression shown below. You could easily add this to a CFC if you wanted to return a true or false depending whether the email address validates or not. <cfset myEmail = "test@test.com"> Sun, 06 Jan 2008 09:26:00 +0100 We have just finished work on a new site for the Geraint Davies Hearing Centre. Specialising in all types of hearing aids. Geraint began his career in Audiology with the NHS in Bangor and trained at the Royal National Throat Nose and Ear Hospital, Gray's Inn Road, London. Having qualified in 1976 he worked for ten years with the NHS before joining the private sector with Cheltenham Hearing Centre and eventually becoming Area Manager with Siemens Hearing Instruments. If you are looking for a new or replacement hearing aid, then why not visit his new site at: www.gdhearing.com Sat, 05 Jan 2008 12:08:00 +0100 To remove all HTML tags from a string, you can use the following regular expression. This could be used to stop HTML being injected into URL values. Or even just for creating plain text content from a HTML page. <cfset myString = "<a href='/link.cfm'>Link to my page</a>">
<cfset myString = reReplaceNoCase(myString, "</?\w+(((\s|\n)+\w+((\s|\n)*=(\s|\n)*(?:#chr(34)#.*?#chr(34)#|'.*?'|[^'#chr(34)#>\s]+))?)+(\s|\n)*|(\s|\n)*)/?>", "", "All")> <cfoutput>There should be no hyperlink: #myString#</cfoutput> Mon, 10 Dec 2007 14:09:00 +0100 We have recently release a new improved version of theWebguides.net which has now been expanded to provide misspelling searches for most of the countries that ebay are active in. Our ebay misspelling tool can find you the cheapest listings on the site. Using state of the art tools, you can find all the auction misspellings that people have mis-spelt while they were adding them to ebay. What this means is that you will more often than not find listings either no, or very few bids on them. Fewer or no bids can only mean one thing! Cheaper prices. For example, try these:-
Enjoy!! Wed, 31 Oct 2007 15:37:00 +0100 Another one of those funnies... Only recently Adobe dream weaver CS3 started crashing when I was selecting text in code view. For example, the code below, if I tried to select the whole CFIF block, then immediately a Vista error message appeared saying dreamweaver had crashed. <cfif isdefined("attributes.endDate")> Not ideal since the vast majority of developing code involves copying and pasting blocks of text. After some investigation, I found the following thread which helped immensely:- The crux of it was deleting the winfilecachexxxxx.dat file - Once doing this, it was plain sailing and hasn't crashed since. On Windows Xp, the file is at:- [drive]:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver On Windows Vista, you can find it in:- [drive]:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration Mon, 15 Oct 2007 15:16:00 +0200 We have just released a re-designed version of the Plas Llwyd guest house, Llandudno. Amanda wanted a more subtle and lighter feel to their previous website and a more authentic feel for her Victorian guest house. We opted for light and airy with classy photographs from this tastefully decorated property. If you are looking for a bed and breakfast in Llandudno, the Plas Llwyd guest hosue would be a really great place to visit. The guest house is a 4 star guest accommodation as rated by the Visit Wales (formerly the Welsh Tourist Board) Why not visit the website now at http://www.plasllwyd.com Fri, 12 Oct 2007 21:45:00 +0200 My good friend Paul Levy ( visit his blog at www.ideasman.com ) has recently revamped his North Wales website. On Beautiful North Wales you can find a wide variety of guest houses, hotels and other accommodation - You can also find a list of the many attractions in North Wales and Llandudno. Why not see what Paul has done by visiting his site at http://www.beautiful-northwales.com
Wed, 03 Oct 2007 10:59:00 +0200 We have just completed work for a credit card comparison website. We developed the back end tools which enables the webmaster to easily aggregate the best credit card offers from all the major UK card providers. In addition, we wrote the tool which enables the visitors to compare credit cards and find the best card for them. They are presented with a simple to understand breakdown of the best cards available, and from there they are able to find out detailed information about any of the credit cards presented to them. There is also a rating system which is dynamically managed based on user feedback. Visit the website now to see how it works:- http://www.airaid.co.uk Tue, 02 Oct 2007 07:21:00 +0200 Marine Park is a family oriented holiday park in Rhyl North Wales Rhyl, North Wales. We wanted the site to be very simple to navigate and also to be bright, and fun. Although attracting new guests to stay at the park was key, it was also very important to increase the exposure and traffic for their caravan sales department. Therefore, all the pages were search engine prepared by default (our usual practice) but with extra emphasis on the static caravans for sale and used holiday home caravans ( Park homes). |