Archive for October, 2009



34SP.com on Twitter

October 30th, 2009

Posted by Derek

Not very long ago, 34SP.com created a Twitter account at: http://twitter.com/34SP. Our goal was to open up a dialogue with UK hosting clients and prospective clients regarding our services, support and operations. We check into our Twitter account several times each day, and note any comments – good or bad – to help us better serve our valued customers. First off, we need to say ”Thank You!” to those clients who have taken the time to post their thoughts on 34SP.com onto Twitter.

We have ”favorited” those comments that seem to capture the spirit of service that 34SP.com strives to achieve each and every day. You can see all of our ”favorited” Tweets here: http://twitter.com/34SP/favorites.

For those of you who have not seen our Twitter feed we offer here a few comments chosen from the many we have received during the past few weeks. These comments are posted in their entirety with no editing whatsoever (so some of the punctuation is loose). Enjoy.

MarcReck
2 days left for free prizes for buying hosting with @34sp who are in my opinion one of best web hosting companies – http://bit.ly/2xFp34

Jason_Cobb
@uk2′s loss is @34sp’s gain. Phone answered immediately, hosting package bought.

franmouse39
@eatlikeagirl I swear by 34SP

simonbarker
@Caroldtravels i use @34sp for hosting , probably not the cheapest, but definitely the best value for money I’ve found so far! :)

robgt2
@ItsAllAboutCov have you thought of switching to 34sp.com? I’ve used them for a few years now and have had no problems at all.

rich_w
Just renewed hosting and domain name on arbitraryconstant.co.uk for another couple of years, using @34sp. Need to keep blogging!

satdav
@34SP I like 34sp due to there support is world class also it is the best UK hosting go 34SP

dianemulholland
@MagpieEyes We used them for the Inside Loop as well and have never had a single problem. http://www.34sp.com/

alexhardy
@Psychobel Do you mean web hosting? I use @34sp and they’re great – the support in particular is top notch.

lisa617
@joeburkel I really like 34sp.com. Top-notch customer service. Used ‘em for years. Might just ditch this domain and start fresh.

jontutcher
Been pestering @34sp all day about websites and DNS, great support (especially seeing as I’ve so far paid £4 for the account!).

rich_w
@robertbrook I think they’re excellent – always very responsive. Well done, @34SP.

rich_w
@34SP Aha – hullo! Yes, been with you for nearly 5 years and all very good! Great, quick and responsive service! (You can quote me on that.)

Creating Dynamic Content Using Javascript Frameworks

October 7th, 2009

Posted by David

Many of our UK web hosting clients have asked about how to make their websites more engaging. This blog post will introduce you to a great tool for creating interactivity between your website and the user. Read on to learn about Javascript frameworks and what they can do for your website.

What are Javascript frameworks?

Javascript frameworks are basically external javascript files which can be included in your web pages to provide additional javascript functionality, usually in the form of effects or user interface enhancements.

What can Javascript frameworks do for your site?

Primarily Javascript frameworks can be used to increase the level of interaction between the site and the user thereby improving the end-user experience. While it’s possible to achieve all of the effects discussed in this article using ordinary javascript a major advantage of using frameworks is that some of the complex and time-consuming issues of javascript development, such as that of cross-browser compatability, are usually taken care of by the framework (this isn’t an excuse to avoid thorough testing however). Another major advantage is that they can greatly decrease the development time of your web applications. Let’s look at an example to find out how.

Putting the User In Control

Javascript can be used to dynamically control the content of a page giving the user more control over what they view on the site and how they view it.

One way this technique is commonly used is in comment systems to allow the user view or hide comments as they see fit. This article will demonstrate how a simple comment system might be implemented and how we can use javascript frameworks to enhance this system. This is how a single comment in our system might look:

Comment Header
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ut tortor purus, sed ullamcorper nulla. Donec dignissim eleifend dolor non blandit. Sed adipiscing magna non leo venenatis quis blandit felis consequat.

Clicking the header of the comment will dynamically show or hide the comment’s body. Here’s how the HTML for this comment.

<div class="comment">
	<div class="commentHeader" onclick="toggleComment('comment1');">
	Comment Header
	</div>
	<div class="commentBody" id="comment1">
	Comment Text
	</div>
</div>

The important thing to note about this code is that the header of the comment uses a javascript function called toggleComment to show or hide the comment when the title is clicked. The function toggleComment is shown below.

<script type="text/javascript">
function toggleComment1(commentId) {
	if ( document.getElementById(commentId).style.display != "none" ) {
		document.getElementById(commentId).style.display = "none";
	}
	else {
		document.getElementById(commentId).style.display = "block";
	}
}
</script>

To dynamically show or hide the body of the comment we are currently using using standard javascript. This is okay but it is far from an elegant solution. In order to improve the efficiency and readability of this code we will introduce the Prototype framework which is available for free from http://www.prototypejs.org. To use it simply add the following code to your page.

<script src="/javascripts/prototype.js" type="text/javascript"></script>

One of the most useful and widely used of the Prototype functions is the $ functions which is used as shorthand for the vanilla javascript function getElementById. By updating our code to use the function we get this.

<script type="text/javascript">
function toggleComment1(commentId) {
	if ( $(commentId).style.display != 'none' ) {
		$(commentId).style.display = 'none';
	}
	else {
		$(commentId).style.display = 'block';
	}
}
</script>

Now this improves the readability of the code somewhat but can be made more streamlined still through the use of Prototype’s toggle function.
In fact we can remove the function toggleComment altogether and simply replace the comment header’s onclick event handler with a call to toggle.

<div class="comment">
	<div class="commentHeader" onclick="$('comment1').toggle();">
	Comment Header
	</div>
	<div class="commentBody" id="comment1">
	Comment Text
	</div>
</div>

Style

So now we have comments which can be dynamically shown or hidden by the user, an increase of interactivity which can help to maintain a user’s attention, but it looks a little plain.

In order to add some flair to the proceedings we can use the Scriptaculous framework.

Scriptaculous, available from http://script.aculo.us/, is widely used to add effects to dynamic web pages. It is fitting for this example because it utilises the Prototype framework, which we have already included. To start using Scriptaculous we simply need to add one line.

<script src="/js/prototype.js" type="text/javascript"></script>
<script src="/js/scriptaculous.js" type="text/javascript"></script>

Scriptaculous comes with a variety of effects for controlling page elements and you should definately check out the Scriptaculous documentation to discover all the possiblities. For this example we will use the slide effect coupled with Scriptaculous’s own toggle function to improve the look of our comments system.

<div class="comment">
	<div class="commentHeader"
	onclick="Effect.toggle('comment1', 'slide', { delay: 0.5 });">
	Comment Header
	</div>
	<div class="commentBody" id="comment1">
	<div>Comment Text<div>
	</div>
</div>

The code snippet above shows how this can be implemented in place of the Prototype function we used previously. Our comments box will now look like this.

Comment Header
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ut tortor purus, sed ullamcorper nulla. Donec dignissim eleifend dolor non blandit. Sed adipiscing magna non leo venenatis quis blandit felis consequat.

One caveat to note when using this effect is that our comment text must now reside in a second div tag which is inside the tag on which the effect is called.

Bringing it all together

This is how the code should look displaying a number of comments on our final page.

<html>
<head>
	<title>Javascript Frameworks</title>
	<script src="js/prototype.js" type="text/javascript"></script>
	<script src="js/scriptaculous.js" type="text/javascript"></script>
</head>
<body>
<div class="comment">
	<div class="commentHeader"
	onclick="Effect.toggle('comment1', 'slide', { delay: 0.5 });">
	Comment Header
	</div>
	<div class="commentBody" id="comment1">
	<div>Comment Text<div>
	</div>
</div>
<div class="comment">
	<div class="commentHeader"
	onclick="Effect.toggle('comment2', 'slide', { delay: 0.5 });">
	Comment Header
	</div>
	<div class="commentBody" id="comment2">
	<div>Comment Text<div>
	</div>
</div>
<div class="comment">
	<div class="commentHeader"
	onclick="Effect.toggle('comment3', 'slide', { delay: 0.5 });">
	Comment Header
	</div>
	<div class="commentBody" id="comment3">
	<div>Comment Text<div>
	</div>
</div>
</body>
</html>

Further Reading

This article only scratches the surface of some of the incredible effects that can be achieved using Javascript frameworks. For more information on Prototype you should read the Prototype Api Documentation and for Scriptaculous you should read the wiki.

In addition to these frameworks you should also check out Mootools.

All of these frameworks have their own sites with excellent learning resources but if you have a specific problem why not check out the 34SP forums.




9 Years of Hosting, 9 Great Prizes

October 1st, 2009

Posted by admin

The website hosting industry is a relatively new business segment. With mergers, acquisitions and the threat of continuously increasing competition, it is a testament to a company’s perseverance if that firm reaches the nine year mark. UK website hosting firm 34SP.com was founded by Manchester University colleagues Daniel Foster and Stuart Melling 9 years ago this month, and to celebrate the anniversary the company is giving away 9 great prizes to mark the occasion.

34SP.com is located in Manchester, United Kingdom and specializes in providing the highest levels of customer service and technical support for website hosting and domain names.Over the past 9 years the company has solidified a reputation for outstanding support, coupled with extremely high reliability at fair prices. A complete list of the company’s website hosting products can be viewed at: http://www.34sp.com/hosting.

Anyone who purchases any 34SP.com product during the month of October is eligible to win the ’9 Years of Hosting, 9 Great Prizes’ contest. Winners will be determined by a random drawing at the end of the month. The prizes being offered are:

  • New Apple iPod nano with Camera 8GB (5th Generation)
  • Toshiba Satellite L350-20G 17-inch Laptop
  • Canon Powershot 12.1 MegaPixel Camera
  • Western Digital Elements 1TeraByte USB 2.0 External Hard Drive
  • Canon Selphy ES40, a Portable Talking Printer
  • Sony DVPFX730 7-inch Portable DVD Player
  • Flip Video Ultra High Definition Camcorder With 8GB Memory
  • Toshiba 19AV615DB 19-inch Widescreen HD Ready LCD TV
  • The Beatles Rock Band – Limited Edition Premium Bundle

 

Stuart Melling, co-founder of 34SP.com explained the giveaway, ”We thought it would be great to reward clients with a truly valuable prize for each year that 34SP.com has been in the website hosting business. It has been a great challenge to grow as we have over the past 9 years and continue to offer our clients world class support, but we are gratified to have had the opportunity to serve our customers over the past 9 years. We are very much looking forward to the next 9 years!”

34SP.com was established in the year 2000. The company was founded with the aim of bridging the gap between sophisticated hosting solutions and affordable prices. The owners and core engineering staff have been with the company since its founding. In terms of reliability, independent monitoring service, Netcraft in Bath, England recently rated 34SP.com as the fifth most reliable hosting service in the world for the month of June, 2009. Additionally, a recent internal survey found that 98% of 34SP.com clients would recommend the company to others.

To learn more about 34SP.com, please visit: http://www.34sp.com.

 

About 34SP.com

34SP.com offers professional website hosting services for cost conscious web developers and designers. The 34SP.com team of technical experts offers industry leading support and service coupled with a money back guarantee to ensure client satisfaction. Website hosting services offered include: UK domains, UK web hosting and dedicated servers. The company is headquartered in central Manchester, England.