News & Blog

Back to Basics: Calling a JavaScript Function on Page Load

March 6th, 2011 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
For an experienced developer it is often easy to forget that once upon a time they too struggled with even the easiest of tasks and that not everyone has as much experience as them. The learning curve for developers is a steep one and one that I feel is steepest in the first year or [...]...

Prevent jQTouch Links Going Back or to Homepage

February 23rd, 2011 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
Thanks to jQTouch making apps for the iOS (and infact any platform) can now be achieved with nothing more than knowledge of HTML, CSS and jQuery. The purpose of this post isn’t to tell you how to make one of these apps (for that I recommend this excellent tutorial) but rather to expl...

jQuery jqGrid Slow to Respond when Clicking Cells or Rows

January 31st, 2011 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
After recently getting stuck into the jQuery grid plugin jqGrid by Tony Tomov and getting a hold on the core functionality, something that came to light relatively quickly was the responsiveness (or lack of) when performing actions on grid events such as ‘onCellSelect’. More th...

Only Applying a CSS Opacity to the Parent Container

November 16th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
If you’re reading this post you’ve probably realised by now that any elements included within a container that has had a CSS opacity applied will inherit this opacity also. Let’s look at a quick example of this scenario The CSS: body { background-color:#C00; } .container ...

Forcing Long Strings and URLs to Wrap with CSS

November 10th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Ever tried to squeeze a long word with no spaces or a URL into a small area? If so you may notice that different browsers deal with this differently. Let me give you a quick example: Our HTML: <div style="width:150px; border:2px solid #900;"> http://www.example.com/this/is/a/test/web...

Remove the Scrollbar in Fullscreen Mode when Using JavaScript

October 26th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
By using the window.open() function of JavaScript we can popup a new browser window/tab, specify the height and width of the window to be opened, and even set whether to hide or show certain elements such as toolbars, the address bar and more. One of the other attributes we can specify is ...

Removing Mysterious Blank Space from Above a Table in IE7

October 11th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
I know, I know… HTML tables are old school, out of date and uncool. Regardless of this fact however they will always be used on some sites and admittedly, I even use them myself in certain circumstances. I came across an issue recently however when cross-browser testing a page where ...

Reasons to Validate your HTML Web Pages

September 28th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Before I begin to list the reasons why you should validate your websites, lets take a step back and look at what validation actually is. What is W3C Validation? Validating your webpages means updating your code (ie. HTML and CSS) to meet the technical specifications and guidelines outlined...

Reasons Why a HTML Form Might Not Submit

September 23rd, 2010 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
I’ve had it lots of times throughout my career; you build a form and it will not submit. I know how frustrating this can be so I’m going to outline a few reasons why this might be below: 1. Check your HTML Structure In order for a standard HTML form to submit successfully it re...

Stopping Spam Via Web Forms Without Using a CAPTCHA

May 18th, 2010 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Personally I hate spam (who doesn’t!), but I also have a strong disliking towards methods used on site’s forms to stop it. CAPTCHA’s, questions like ‘1+1’ or ‘Is water wet or dry’, they’re all in place to separate the genuine Human Being user...