Strictly Javascript
There comes a time with a large Javascript project where having the code behave more like a 'usual' programming language becomes useful. This is where 'strict mode' comes in. Javascript is very...
View ArticleCreating Files with PHP via fopen(), fwrite(), fclose() and copy()
On a recent project I was getting some pages that were causing PHP to run slow. Essentially the PHP was looping through various tables in the MySQL table to build a rather complex 'Mega Menu'...
View ArticleAdding Form Fields Dynamically with Knockout.js
A couple of years ago I did a post entitled Adding Form Fields Dynamically with jQuery. In this post I am going to re-visit the same problem but this time use Knockout.js to create the dynamic form...
View ArticleValidating Radio Buttons Using Javascript (jQuery)
In online surveys you may want users to have to answer a radio button style question. You can set a default value with checked as follows: However, you have to make a decision what the default with be...
View ArticleRecursive Javascript Functions
Just posted a codepen if anyone looking at Recursive Javascript functions. The scenario here could I am sure be tackled other ways but I wanted to do it with a recursive function. Given an array of...
View ArticleLimit The Number of Checkboxes 'checked' with jQuery
Quick code snippet. Assume you have: Then you could use the following jQuery:
View ArticleTime for Flexbox? Some Simple Examples to Convince You
It looks like the time has come to dive into Flexbox. This layout technology has been lurking on the fringes of CSS for a while now but with sites like the BBC and with frameworks like Bootstrap 4...
View ArticleFlexbox Technicals - Part One
The concept of 'flexible box' or flexbox is name of the CSS3 flex layout model. Flexbox is based around flex containers and flex items. A flex container is a parent element to flex items. Flex items...
View ArticleFlexbox Technicals - Part Two
Before reading the following ensure you are happy with the flexbox concepts of main axis and cross axis discussed in my previous post. Justification on the main axis The CSS property justify-content is...
View ArticleOne Hell of a Week
Posted in capacity as Module Leader Group Software Development, Department of Computing Sheffield Hallam University A Morgue One hundred students, 10 clients, 5 labs of University PCs, overzealous...
View Article