Showing posts with label Internet Explorer. Show all posts
Showing posts with label Internet Explorer. Show all posts

Monday, 10 January 2011

Genealogy websites 2011

One returning from my Christmas break I started to think about a suitable blog with which to start the New Year. Initially I thought about a review of 2010, but then we've done that and got the T-shirt! So, how about 2011, and what will it bring? Since my main interests are genealogy and creating websites, the exciting happenings in website development, and the possible effects on our websites is an obvious. But first, I would like you to look at The Wilderness Years to do so you will need lots of memory and preferably the Google Chrome Browser, if you haven't got it, it is worthwhile downloading for this site alone. It will just about run on the latest Firefox (but not well), and I could not get it to run at all on the latest Beta version of IE9. When asked for your town, I would suggest that you enter a large city, or at least a place where Google Earth will have lots of photos.

Now that site is based on the new HTML5 coding, and I am not suggesting that it will have much effect on research sites such as Ancestry, or Findmypast, but I am certain that it will be used by people, like myself, who write their own websites. It will also be used in conjunction with another new language, CSS3, which is used to code the positioning and layout of the pages.

Will this affect the User?

Yes, it will! Already the latest browsers are starting to incorporate the functionality which they need in order to read HTML5 and CSS3. Chrome is probably the best at present but it is steadily being introduced into Firefox, Opera, IE9 and other major browsers. The figures below are taken from visitors to my own website.
1) Browsers used:
As might be expected IE is at the top of the list whilst at the bottom are the mobile phone browsers. In general, it is fair to say that non-IE users tend to be very dedicated in updating their browsers to the latest version, and IE users less so as the table below shows:

2) IE Users:
At last some three-quarters are now using IE8 but there is still over 5% using IE6 or earlier. Those users are going to have problems because only the latest browser will be able to read the new codings, and their problem is that little will be done to get the sites to display properly when using them. Even IE7 and IE8 users will not get the full benefit of the new technology, although the probability is that the sites will degrade gracefully for these users.

IE users with the XP operating system also have a big problem since it would seem that IE9 will only be available for Vista and Win7 operating systems - a change to Chrome could be their best option.

Website Generators

To generate my Pedigree web pages I use the HTML generator included in the Legacy Family Tree program. I still consider this to be the best program around for these types of web pages, but it is now getting old and tired as it is written in very basic HTML. It has received a boost with the publishing of a program from LTools which enables the conversion to CSS/HTML, but, in my view, will shortly need to be rewritten - this comment also applies to most similar programs.

The Future

This year promises to be one of the most exciting in website development for many years but for the new techniques to achieve their potential depends not only on the website developers but also relies on the users to upgrade their browsers and the software manufacturers to improve their generators - before we reinvent the wheel!!

Disclosure

The author is a volunteer beta tester for Legacy Family Tree.

© Ron Ferguson 2011

Tuesday, 6 April 2010

Website Update: Complete!

Finally my revised website is now up and running, and I would like to review some of the lessons which I learned during the process of revising a genealogy site with some 7000 - 8000 pages. This was the first major rewrite for 5 years, during which time coding techniques have changed, and visitors are looking for increasingly greater interaction and usability.

I started thinking about the design in November 2009, with the major changes being to the index pages and applying a common theme throughout the site. The headers for the Pedigree pages and some others I decided to leave, except for colour changes. I have said before, but I will repeat, design is not one of my strengths, so it took two or three weeks before I decided to use a scheme based on the colours of nature, mainly blue, green and brown, with an index page design to suit.

To write and verify the coding took another two months of work (actually three months but one was lost through illness and holidays). I like to work to dead lines, so in November I settled on 1st March for the launch, revised to 1st April, and it actually went on-line on 2nd April.

Relaxation

I recommend taking regular breaks! In the early hours of one morning I was working away trying to get rid of a bug, and nothing which I did seemed to make any difference. I simply could not understand it! Only after a short break did I realise that the screen I was looking at was on-line and not the one I was working on using my PC.

Tools used

The Pedigree pages were created using Legacy modified to CSS with the excellent LTools designed for use with Legacy. For my text (HTML, PHP and CSS) editor I use PSPad which allows batch search and replace. Because I have inserted some PHP in all my Pedigree pages I have to change all the file extensions from .HTML to .PHP using Ken Rename, and, finally, I also have to insert some script into the coding. This can only be done after the previous processing and hence requires the use of Regular Expressions to locate the point of insertion. To batch process I use Actual Search and Replace, but note that it cannot write the search and replace the strings for you!

Testing

Arguably this is the most important bit, it is certainly the most time consuming! Because of the use of PHP, I cannot test the Pedigree pages in IE unless it is actually on the web, which is something of a pain. I do, of course, have a folder on the server which I only use for testing purposes, but there always seems to be a difference between how something behaves in that folder and real life!

Links can be tested on-line using the W3C Link Checker, and do remember that for a 404 Error Page all links have to comprise the full URL ie. "http://www...."otherwise even your CSS won't work. This will not quite be the end of it, though, as you, or your visitors, will probably find a few missed bugs for a few days afterwards - make sure they can readily find a way of contacting you!

Finally

Ensure a plentiful supply of coffee, and enjoy!

Thursday, 11 March 2010

Genealogy Website: The Nav Bars

 A web page can be considered as being built on layers, the first being the base, or blank page, usually white but it can be given a colour. For my new site I have put another, slightly smaller, background layer on top, followed by the data and images. In my case I consider the nav bars as being a new layer since the drop-downs must sit on top of any data and images. One point about images, IE6, and earlier, do not recognise the ".png" transparency. Google will find many scripts to cure this, one of which is to be found here.

To date, I have used javascript for my drop-down menus, however it is now possible to write these in CSS. Unfortunately, because to do this the latest CSS standard is used there are problems with older browsers, in particular with IE6. The image on the right is a sneak preview of a section of my new index page, and as can be seen the drop-down sits on top.

To make them display on top of images is easy, simply use the "z-index" CSS style. However for other image forms it can be quite tricky. For Flash, within the "Object" tag the line < param name="wmode" value="transparent" > needs to be included. IFrames present a different problem, and to date, despite having tested varying "solutions", I have yet to find a way of stopping the nav bars from going behind the image for IE7 and earlier. Still, I've three weeks left!

Now, the above are the easy problems, again it is IE6 which causes the real head ache, because CSS drop-down menus simply do not work! To the rescue comes Suckerfish and the Sons of Suckerfish, which for my purposes I had to modify even further.

In my first Blog in this series I mentioned that I wished to eliminate/minimise the use of javascript, and for the navigation this has largely been achieved. As you will see to get them to work in the early versions of IE, and I no longer bother writing for IE5.5 and earlier, javascript has been a necessity, this I feel is a fair compromise. If those using IE6 do not have javascript enabled the navigation will not work, but it is still possible for visitors to get round the site albeit with more difficulty. (If you are viewing this using IE6, please upgrade, especially as you can now see our headaches!)

My final point concerns testing, I use Firefox for most of my development work and test in IE8, Opera, Safari, Chrome, Sea Monkey and Bing, these I have on my PC. As I do not have a Mac. I rather hope that if it works with Safari it will be OK (not really satisfactory, but there we go!). So how do I test in earlier versions of IE? A nice free piece of kit called IE Tester enables this to be acheived.; although still in Alpha version, and not every bit works fully, it does do the job, and for me is a life saver.

© Ron Ferguson 2010

Thursday, 25 February 2010

Genealogy Websites: New, Improved, Updated & How

My current site Fergy's Website has been in its current form for over a year, except for the Pedigree pages having been converted to CSS. I commenced work on the new site in November 2009 with a view to launch on 1 March 2010, although this was pushed back to 1 April 2010 mainly due to illness.

What I hope to do over my next few Blogs is to illustrate the objectives and problems and how these were overcome. Please do not think that this is going to be so technical it will over your head, some of it perhaps, but most can be applied with little knowledge of programming.

It is essential to draw up the criteria which need to be met for the revised site, mine are:
  • It must be based on the Legacy Pedigree Web creation function, for no other reason that I really like this layout. I have looked at formats such as The Next Generation, and others, most of which require a GEDCOM upload, but, for me, Legacy was the one.
  • To maximise the use of CSS to separate out the design from the HTML data.
  • To replace the Javascript navigation with CSS, and in general, minimise the use of Javascript.
  • Where possible apply the most modern CSS and HTML standards.
  • To ensure cross-browser compliance, including IE6 - which continues to be used by a surprisingly high percentage of genealogists!
  • To redesign the Index page, which given that I do not pretend to be a designer is no mean feat!
  • To ensure W3C standards are met.
Some of the above aims obviously conflict with each other, so compromises have to be made. These will be described later.

The first problem is that the Legacy Pedigree web pages are not W3C compliant and are written exclusively in HTML. Whilst I had converted the major design components to CSS, to convert all would have meant writing a program to automate this, or using a program which would use Regular Expressions to convert each tag individually - ugh! Unfortunately the first alternative I thought to be beyond my VB.Net programming skills.

However, in 2009 Ltools released a program for Legacy users which validates the HTML and converts all to CSS, and it was this which I used last year to overcome this main stumbling block to achieving a major aim. Some information on the use of this tool is also given in my tutorial here.

The other items will be considered in future Blogs, so watch this space!

Sunday, 13 December 2009

The Genealogists' Revenge

For those who use Internet Explorer, Firefox or Chrome, and, in the last couple of months, have downloaded the new Google toolbar you may have seen a little writing pad icon, usually at the bottom left of a page. This is the new Google Sidewiki, click it and one can enter a comment which will remain attached to that page.
If there is an entry in the Sidewiki on a page then the icon on the left, which turns yellow on hovering over it, will be seen at the top of the page. One can also use the Sidewiki icon on the Google Toolbar.

Visitors and webmasters may have different views as to the benefit, or otherwise, of this facility, and I am not going to enter into this discussion, but rather look at how by correct usage it can advantage both. However, it is initially necessary to look at some of the controversal aspects:
  1. Can a webmaster switch it off? No, although I understand it does not appear on secure sites
  2. Can a webmaster edit a visitor's entry? No
  3. Can a webmaster delete a visitor's entry: No
  4. Google says that it will check for inappropriate entries - if flagged
  5. Entries are entered in a priority list as determined by Google
The potential pitfalls for webmasters are  obvious, but there are some steps which can be taken to minimise these.

Take part-ownership of the Sidewiki 

 

It is necessary to first register your site with Google Webmasters, you will need to register yourself with Google for this. You will then be given the option of including a meta tag in your script (see my Web Creation Blogs) or uploading an html script to the root of your site. There is also an automatic link to Blogger. Once done your own entry can be permanently entered to the top of the list on every page - although I have not been able to get the "all pages" check box to appear on my sites using Firefox!

Check all entries

 

The entries which visitors make can also be read by the webmaster using either your Google Profile or from an RSS feed using the URL: http://www.google.com/sidewiki/feeds/entries/domainpath/www.MY DOMAIN.COM%2Ffergys%2F/default?includeLessUseful=true, replace "MY DOMAIN.COM with your own domain name and delete the "www." if not included in your URL. Using this is somewhat messy, so I suggest that you use a feed generator.

What use is it?

 

If used properly then the Sidewiki offers an opportunity for commenting on, and discussing, individual entries in a genealogy website, such as: whether Joe Blogs has the correct parents. This can be done in a most convenient way compared with having to go to a comments page or sending an email, and it is open for other interested parties to enter the debate.

And why do I title this piece the "Genealogists' Revenge"? Well, when we now see our research published on a website by someone else, and without attribution, we can now claim it back! If the cap fits I advise caution.

© Ron Ferguson 2009