Recent Posts
- Quick Code: Get the domain name in JS
- Things to think about when designing a logo
- Javascript Array Functions
- Integrating FCKEditor to save current content with AJAX using PHP
- Pad A Javascript Number
- Why use heading tags as opposed to font tags for displaying text in HTML?
- Creating One Time Download Links
- Why Javascript in Forms is Bad
- Five Things To Remember When Designing Accessible Web Pages
- Sizing Images Correctly – Part Two
Topics
Posts About: Coding
Quick Code: Get the domain name in JS
When your developing a site or online application that uses a lot of XML HTTP Requests (XHR) it’s generally a good idea to use a full URL when creating a request. If you then try to re-use your code across multiple sites and domains, you will find you get errors due to posting to a different domain than the current site.
Javascript Array Functions
Without using a Javascript library such as JQuery, there are very few functions built into Javascript to deal with arrays. Here are a few of my own that often come in handy when working on projects.
Integrating FCKEditor to save current content with AJAX using PHP
This is a short post which basically looks at an issue I had whilst developing my own content management system in PHP. The system uses FCKEditor as a basis in which for users to edit content with. The problem stemmed from me wanting an auto save feature that saved what was currently within the FCKEditor [...]
Pad A Javascript Number
To keep design and content consistent I often pad numbers with zeros to ensure they are all the same width. There is no built in function to do this, so I wrote my own.
Why use heading tags as opposed to font tags for displaying text in HTML?
I pose this question as it is something that i often get asked by clients about and felt it was worthwhile talking about. Although related to clients, I think its something that people who code HTML should also give consideration. The scenario I usually find myself in is that a client wants to understand why [...]
Creating One Time Download Links
Creating single use or timed download links can allow websites to offer downloadable content that expires after a single download or after a set period of time. Many e-commerce sites are using these techniques to sell documents and files online.
Why Javascript in Forms is Bad
A look at how some Javascript in forms is bad and how when it’s bad it can destroy customer confidence and lose you valuable sales.
Sizing Images Correctly – Part Two
This post follows on from what we looked at from Sizing Images Correctly – Part One and looks at another issue as to why correct image sizing is important.
Graphical CSS Rollover Menu
Learn how to create an accessible CSS only menu with image rollovers.
Sizing Images Correctly – Part One
There are many advantages as to why you should spend extra time on sizing images correctly before adding them to your web page. This post is Part 1 of 2 which looks at the difference between an image resized using HTML and an image resized in Photoshop.