June 2007 Entries

JavaScript cross browser compatiability tip #98439483

If you're dynamically resizing anything in your browser using JavaScript, and you'd like it to work in more than one browser, then you need to remember to set the unit type of your object as well as the value. The following code works in IE, but not in Firefox: myDiv.style.width = height1 + height2; This however, works in both browsers: myDiv.style.width = height1 + height2 + 'px'; As for Safari? Right now your guess is as good as mine. If I get a spare few minutes I'll throw together a...

posted @ Thursday, June 28, 2007 5:00 PM | Feedback (0) Filed Under [ Web Development Miscellaneous ]

ReSharper 3.0, Vista, or aliens?

Seeing as I mentioned the ReSharper 3.0 release, I thought I should also mention that I've reverted my main work box (which is running Vista) back to ReSharper 2.5.2. I was having some weird issues around shortcuts not quite sticking, as well as some functionality simply not working (the compilation checking seemed either disabled or incredibly lagged, ctrl-p for parameter info was only working intermittently, and the automatic insertion of using statements wasn't firing either). It was a weird few hours working without full ReSharper functionality - it scared me thinking about how much I missed it. Unfortunately I...

posted @ Wednesday, June 27, 2007 10:46 PM | Feedback (0) Filed Under [ Miscellaneous C# ]

Morning Frost

Frost by itself isn't anything too amazing or interesting. However, when it's in Auckland, and when you can scoop it into a pile and almost make a snowball out of it, then you can say "It's cold today" and feel somewhat justified. Tags: NZ, NZ Trains

posted @ Wednesday, June 27, 2007 10:39 PM | Feedback (0) Filed Under [ NZ NZ Trains Miscellaneous Me ]

The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse

Wow, what a post title. It's a couple of weeks old, but this list over at haacked.com is a quick list of classes that developers tend to code themselves rather than use what's provided in the framework. The constant reinvention is symptomatic of a large and comprehensive framework - there's so much in there, it's sometimes hard to know where to look for something that does what you're trying to do. Looking through the list was quite refreshing. There were a few obvious ones such as System.IO.Path.Combine, however I'd never thought that a framework which is destined to...

posted @ Monday, June 25, 2007 10:03 PM | Feedback (0) Filed Under [ ASP.NET Web Development C# ]

JavaScript intellisense in Visual Studio 2008

Scott Guthrie talks about Visual Studio 2008 and it's support for JavaScript intellisense. It looks pretty slick, however I'm guessing that the computation and evaluation required to provide type inference is going to be pretty CPU intensive. Ah well - Moore's law states that we'll all have had a few computer upgrades well before 2008 right? I'm hoping that the support for intellisense within external JavaScript files means that 2008 will offer additional navigational tools - 'go to declaration' being quite a welcome addition. Navigating through large chunks of JavaScript split across multiple files can be a bit...

posted @ Sunday, June 24, 2007 9:53 PM | Feedback (0) Filed Under [ ASP.NET Visual Studio ]

Domino Web Access does not work in Safari

For those who are interested (both of you!), Domino Web Access does not work with Safari for Windows. Why is that interesting? Well, it's not really, however there was some speculation that it *might* work if you could get past IBM's horrible obfuscated browser detection JavaScript contained in /inotes/forms7.nsf. Speculate no more in the knowledge that it simply doesn't work! Tags: Notes/Domino, Safari,

posted @ Friday, June 22, 2007 11:50 PM | Feedback (0) Filed Under [ Notes/Domino ]

ReSharper 3.0 released

ReSharper 3.0 is now out of beta and available for download. So far I've installed it on both b0xes I develop on, but haven't really used it as yet. I have to confess, there's not a lot in the new release which has wowed me so far - although I'm hoping the XAML support might be useful in the near future. The addition of 'code suggestions' also sounds like something that will be quite welcomed - there were a few situations before where ReSharper would 'warn' you about things which were fairly legitimate. It'll be nice now to receive...

posted @ Friday, June 22, 2007 11:10 PM | Feedback (1) Filed Under [ Visual Studio C# ]

Analyzing the favorable winds

I threw the leg times for an end to end trip (specifically, the first train of the morning) on the Western line in both directions into a quick Excel spreadsheet, and can now reveal the following useless statistics: There are 18 stations and therefore 17 legs along the western line. The most common leg time is 3 minutes. There are 9 eastbound legs which take 3 minutes, and 12 westbound. There are 7 legs in which the durations for the eastbound and westbound legs differ. Of the 7...

posted @ Thursday, June 21, 2007 9:07 PM | Feedback (1) Filed Under [ NZ NZ Trains Miscellaneous Me ]

Follow the favorable winds

I was looking through the new timetable for the Western line and thought I'd noticed a screw up in the train times. The trip duration eastbound looked like it took longer than it used to. That was until I checked the old timetable, and realised that apparently it takes less time to travel from Britomart to Waitakere as it does to travel from Waitakere to Britomart. I'd never noticed this before! The eastbound trip end to end (non express) is listed at taking exactly an hour, whereas the return trip is listed as taking 57 minutes...

posted @ Wednesday, June 20, 2007 8:12 PM | Feedback (4) Filed Under [ NZ NZ Trains Miscellaneous Me ]

Apple enters the Windows Browser Wars

As the browser wars heat up signs throughout the web show that the pro Firefox crew are becoming less subtle with each passing day. As far as Apple are concerned it's a pretty good time to get their latest offering out into the Windows world. The somewhat evangelical momentum behind Firefox has definately helped to educate people into realising that there are plenty of Windows based browser alternatives. I spent a bit of time playing with Safari on Windows Vista today. Visually it's very Mac like - thats to be expected. Ive never been an iTunes user, but...

posted @ Tuesday, June 12, 2007 6:01 PM | Feedback (0) Filed Under [ Web Development Miscellaneous ]

New AJAX Control Toolkit release

The latest release of the AJAX Control Toolkit is now available. On top of over 125 bug fixes and enhancments the new Toolkit includes something called the "ToolkitScriptCombiner" - a control designed to dynamically merge multiple client-side Javascript scripts into a single file that is downloaded to the client at runtime. 2007-06-06 release of the AJAX Control Toolkit has a number of fixes identified as important by the community including designer support for Tabs and Web Services. It also has Animation support for some extenders, event support across the Toolkit, a Script combiner for reducing...

posted @ Saturday, June 09, 2007 1:14 PM | Feedback (0) Filed Under [ ASP.NET AJAX ]

Western line tracking progress

Today was a fairly significant milestone in the double tracking of the Western Line, with the new track opened up all the way through to Henderson. In this article, Newstalk ZB decreed that the entire line has been double tracked. I'm not sure if their definition of entire means 'the entire line (apart from 4 stations)' or whether they consider that finished means 'no tracks, no second platforms, but some digging has been done', or whether they just screwed up. (Note that the entry could have been fixed by the time you read it, if you do, because...

posted @ Tuesday, June 05, 2007 9:27 PM | Feedback (0) Filed Under [ NZ NZ Trains ]

Styling the Atlas UpdatePanel and UpdateProgress controls

Out of the box, the ASP.NET Ajax UpdatePanel and UpdateProgress controls do a pretty good job of removing postbacks from your applications, but they need a little bit of styling to get them looking their best. Here's a couple of links to get you started on the right track: Link: Using the UpdateProgress as a modal overlay Link: Gmail style 'loading' indicator using UpdateProgress Link: UpdateControls: UpdateHistory and AnimatedUpdatePanel Raj's modal overlay (the first link above) allows you to target either an individual control (such as a panel or a GridView), or the entire page. It's very slick looking, but...

posted @ Saturday, June 02, 2007 11:02 AM | Feedback (0) Filed Under [ ASP.NET AJAX Web Development ]

SQL Server Web Report Viewer Issues on Longhorn/IIS7

It seems I've come across yet another AXD related issue. This time with the SQL Server Web Report Viewer Control which was being served up via IIS7 on a Longhorn server. As soon as the page loaded I was getting JavaScript errors of 'RSClientController is undefined'. The report had been working fine on development boxes, so I was pretty sure it was either related to the deployment or IIS. In checking the source of the page I found the following entry: <script src="/Reserved.ReportViewerWebControl.axd? OpType=Resource&amp;Version=8.0.50727.817&amp;Name=Scripts.ReportViewer.js" type="text/javascript"></script> Which of course didn't exist when I pasted the URL into...

posted @ Saturday, June 02, 2007 10:26 AM | Feedback (21) Filed Under [ Visual Studio Web Development Miscellaneous ]

ReSharper 3.0 Beta now available

The beta release of ReSharper 3.0 is now available for downloaded. The product now features support for VB.NET (Revisualbasicer?), XAML, as well as additional productivity enhancements. ReSharper 3.0 Beta expands its versatile support of languages and technologies, providing improved functionality for C#, VB.NET, ASP.NET, XML, XAML, build script editing and integrated unit testing. In other improvements, ReSharper 3.0 brings much-awaited XML and XAML support. XML features include type completion, various navigation between tags, navigation to referenced types, basic code assistance, and live templates support. XAML features include XML editing in XAML code, all three types of ReSharper's...

posted @ Friday, June 01, 2007 7:03 AM | Feedback (0) Filed Under [ ASP.NET Visual Studio C# ]

About me

My name is Ross Hawkins and I'm a developer, consultant, business owner and writer based in Auckland, New Zealand (pictured below!). My current work revolves around ASP.NET, C#, jQuery, Ajax, SQL Server, and a mix of other Microsoft development technologies.

I also have about 15 years of experience with IBM Lotus Notes/Domino and associated technologies. While Notes/Domino is no longer my primary focus I still like to dabble and keep my skills up to date.

I own and run 2 businesses - Hawkins Consulting Services, and Ignition Development.

Bethells Beach, located in sunny West Auckland, New Zealand




Subscribe

Subscribe to this feed


Search




Popular Content

Troubleshooting WebResource.axd

The .NET 2.0 framework changed the way clientside JavaScript is delivered to the browser. Previously, ASP.NET 1.1 used the aspnet_client directory whereas now 2.0 uses WebResource.axd.

Published on October 8, 2006

Microsoft AJAX Extensions: Sys.Debug is null or not an object

One of the breaking changes which was made with the 1.0 release of the Microsoft Ajax Extensions was the renaming of the 'Debug' class to 'Sys.Debug' for reasons of compatiability with other frameworks. Breaking changes like this can often be a source of frustration..

Published on May 22, 2007

Simple ASP.NET Character Counter

A textbox character counter is a pretty simple piece of functionality, and there's a lot of different ways to apply one to your application. The following method is nice and simple, and can be done using only clientside JavaScript if required, or combined with server side code in order to create a more dynamic effect

Published on December 4, 2006

Simple ASP.NET Character Counter - with Master Page Support

A quick update to my previous character counter article adding some changes for those using it with Master Pages.

Published on February 7th, 2009

Adding Tooltips to Gridview Headers

As the title says, this is a very simple but dynamic way of achieving tooltip text on a header column. It's not overly flash, but it's lightweight and quick to implement.

Published on April 15, 2007

SQL Server Web Report Viewer Issues on Windows 2008 Server/IIS7

A fix for another AXD related issue, this time with the SQL Server Web Report Viewer Control which was being served up via IIS7 on a Windows 2008 server.

Published on June 2, 2007
Updated on April 10, 2008




Archives

January, 2012 (3)
December, 2011 (3)
November, 2011 (8)
October, 2011 (9)
September, 2011 (8)
August, 2011 (5)
July, 2011 (4)
June, 2011 (7)
May, 2011 (5)
April, 2011 (3)
March, 2011 (8)
February, 2011 (4)
January, 2011 (3)
December, 2010 (8)
November, 2010 (5)
October, 2010 (6)
September, 2010 (7)
August, 2010 (11)
July, 2010 (12)
June, 2010 (8)
May, 2010 (8)
April, 2010 (4)
March, 2010 (8)
February, 2010 (6)
January, 2010 (12)
December, 2009 (13)
November, 2009 (11)
October, 2009 (12)
September, 2009 (12)
August, 2009 (2)
July, 2009 (7)
June, 2009 (12)
May, 2009 (9)
April, 2009 (9)
March, 2009 (9)
February, 2009 (8)
January, 2009 (7)
December, 2008 (6)
November, 2008 (7)
October, 2008 (9)
September, 2008 (12)
August, 2008 (9)
July, 2008 (6)
June, 2008 (24)
May, 2008 (13)
April, 2008 (16)
March, 2008 (8)
February, 2008 (10)
January, 2008 (1)
December, 2007 (14)
November, 2007 (11)
October, 2007 (11)
September, 2007 (13)
August, 2007 (11)
July, 2007 (5)
June, 2007 (15)
May, 2007 (11)
April, 2007 (9)
March, 2007 (9)
February, 2007 (10)
January, 2007 (8)
December, 2006 (18)
November, 2006 (11)
October, 2006 (14)
September, 2006 (9)
August, 2006 (10)
July, 2006 (4)
June, 2006 (4)
May, 2006 (6)
April, 2006 (3)
February, 2006 (6)
January, 2006 (10)
September, 2005 (2)
August, 2005 (4)

Post Categories

ASP.NET
AJAX
Amusing
NZ
NZ Trains
Notes/Domino
Visual Studio
Web Development
Miscellaneous
Me
Rugby
C#
SQL