Web Design Scribbles

Ajax JQuery – Rotating Image Script
Ajax JQuery – Rotating Image Script

Ajax JQuery – Rotating Image Script

I can’t remember for the life of me where I got this code from, but if I could, I’d give the author the credit. I didn’t write this code, but it’s something I wanted to share because it’s pretty cool. There are HUNDREDS of image rotating scripts out there, but I like this one in [...]



Maruf scribbled this post.
0
Aug 27th, 2010
PHP – Capitalize First Letter Of Every Sentence For Proper Formatting
PHP – Capitalize First Letter Of Every Sentence For Proper Formatting

PHP – Capitalize First Letter Of Every Sentence For Proper Formatting

Here’s an extremely useful snippet of code that will properly format sentences with capitalization. Actually, what the code really does is capitialize every letter AFTER a full-stop (period). Here’s an example of what the code will do… Before: Hello This Is An Example Of A Sentence Which Has Odd Capitalization Which You May Want Fixing. [...]



Maruf scribbled this post.
1
Jul 31st, 2010
PHP / MySQL – Strip Content And Only Display Images From A MySQL Table
PHP / MySQL – Strip Content And Only Display Images From A MySQL Table

PHP / MySQL – Strip Content And Only Display Images From A MySQL Table

This is another one of those quite specific pieces of code, so I doubt many people will need it. I think the code is quite useful, so I thought i’d make a post about it. Anyways, I’m going to show you how you can pull just images out of a field in a MySQL table. [...]



Maruf scribbled this post.
1
Jun 20th, 2010
PHP – Populate Date Dropdowns – HTML Forms
PHP – Populate Date Dropdowns – HTML Forms

PHP – Populate Date Dropdowns – HTML Forms

Ok, i’m going to quickly jot down some PHP code, which dynamically populates date fields (dd/mm/yyyy) for HTML forms. I’m always using this code, but I never write it down, so i’m forever retyping it! To generate the date dropdown fields shown above, you could hardcode the values, like this…. View Code HTML1 2 3 [...]



Maruf scribbled this post.
0
Jun 10th, 2010
Javascript – How To Remove The Trailing Hash In A URL
Javascript – How To Remove The Trailing Hash In A URL

Javascript – How To Remove The Trailing Hash In A URL

Ok, this is a quick note to myself, because I always seem to forget this code, and I have no idea why, because it’s so simple. So, the scenario is that when I’m writing AJAX code, a lot of the times I use a hyperlink to trigger an action. For example, look at the following [...]



Maruf scribbled this post.
2
Apr 25th, 2010
Ajax – Rotating Text
Ajax – Rotating Text

Ajax – Rotating Text

I just implemented a new feature on Property Investment for the Landlord, which shows a box rotating through various text blocks. Just for clarification, this code doesn’t just apply to rotating “text”, you can put images or anything you want in there. This is just a flat image example: I used the excellent Jquery Innerfade [...]



Maruf scribbled this post.
0
Mar 29th, 2010
OsCommerce – SagePay Form Error – 3144: The Delivery information is required
OsCommerce – SagePay Form Error – 3144: The Delivery information is required

OsCommerce – SagePay Form Error – 3144: The Delivery information is required

I’ve recently installed Sagepay Form on a clients shopping cart, which is powered by osCommerce Version 2.2. The installation was pretty simple. I had to install the osCommerce SagePay Form Module and then do various other things to get the account live. Once the account was live I stumbled upon quite a serious problem. The [...]



Maruf scribbled this post.
2
Mar 25th, 2010
Ajax JQuery / PHP – Refresh Table When Inserting Row Into a MySQL Database
Ajax JQuery / PHP – Refresh Table When Inserting Row Into a MySQL Database

Ajax JQuery / PHP – Refresh Table When Inserting Row Into a MySQL Database

I’ve had a few people asking me how to refresh a table (not the entire page) when inserting rows into a MySQL database, so I thought I’d quickly put together a small demo. Here’s a basic demo of what I’m talking about. If you populate the form and press “Submit” you’ll notice the table updates [...]



Maruf scribbled this post.
4
Mar 9th, 2010
Get a free quote