June 25, 2009

New website, small contribution made

A new website for Acupuncture and Shiatsu practitioner Fiona Hurlock has just gone live at www.fionahurlock.com.

Built and designed by Hughes Design, I was asked to assist with some menus on the treatment page.

The menus were quickly implemented using scriptaculous and css so that the menu element changed colour on hover and the arrow to the left changed to a down arrow when clicked using update(). The text "appears" using the Effect object and is hidden using the hide() function again when other menu items are selected. A speedy solution to getting the site live.

June 19, 2009

scriptaculous effects failing

If an effect using scriptaculous fails it could be due to it being applied to an element that is hidden (display: none) If the display is set within a css file it needs to be moved to be inline on the element. ie <div style="display: none">
The effect should then work.

Thanks to the notes on Effect.Appear at github for this.

June 11, 2009

Video Gaming News updated

The VideoGamingNewz.com website has been updated and features even more news and trailers. Check it out now!

August 14, 2008

php form handling multiple select entries

The problem: You need to use the result of a multiple select form element in your php script. Handling a $_POST request gives only one entry from the form element, not all those selected.

The solution: Use array name in form element name ie multiselect becomes multiselect[] or

<select name="multipleselect[]">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option> , etc

then handle with

foreach($_POST['multiselect'] AS $multi) {
// code to deal with each selected item
}

A version of this was found in Using Arrays with Form Data in PHP in PHP 5 Unleashed by John Coggeshall

May 29, 2008

@media 2008 London

An "all rights reserved" , and very slim-looking picture of me and Stuart Langridge, and a guy from Vivabit (sorry, I forgot your name) is here: http://flickr.com/photos/babau/2534705698/sizes/m/

atmedia, atmedia20008

@media 2008 London

@media2008

@media hits London and it's been great. So far I've been to talks by Jeffrey Veen on information design, the mapping of diseased Soho in the 1800s, the BBC beta sites & Clearleft, James Graham and Lachlan Hunt on HTML5, Andy Clarke on design from comic books and Stuart Langridge on understanding HTTP responses, 404 and more.

And the free beer afterwards helped. Met (again) Christian Heilmann, Jeffrey Veen, Stuart Langridge, the HTML5 boys, Rudi from Barclaycard, Ryan Taylor from Havoc Inspired, Paul Stanton from University of Leeds, Michael Rawling and John Resig (jQuery v script.aculo.us) - sorry John!

It's been a great experience - the South Bank venue is a great setting and having seen some great bands in the Queen Elizabeth Hall and spoken word in the Purcell Room it's a very cool place to be talking web.

Some guy took lots of pictures around the bar after the main do. Will try and track down his snaps later.

Roll on Friday.

atmedia, atmedia20008

May 20, 2008

Mac controlling hardware

It's been a while since something caught my attention enough to blog it. This article on Lifehacker, Connect Hobbyist Hardware To Your Mac looks like it could be a cheap but interesting way into using a Mac (or PC) to do computing things with external inputs using a controller board called Arduino.

Projects like the EMI (Experimental Musical Instruments) project
http://mlab.taik.fi/~korayt/emipro.html

Or any of these examples at the Arduino Playground

This Macworld article also discusses it, explaining how an external sensor will send a signal back via a USB connection to the Mac/PC.

March 27, 2008

Domain name for sale

The domain name myupdates.co.uk is up for sale as the CMS project associated with it ended up on a client's domain. Check out the sedo site for more information.

Happy bidding!

January 16, 2008

Jobs keynote in 60 seconds

Includes the ultra thin Mac Air notebook, Movie Rentals and Time Capsule wireless backup. As seen on Mahalo Daily and The Guardian's AskJack.

January 11, 2008

Get first record in mysql recordset

This solved a problem the other day whereby mysql_fetch_array had already been used after a query had been run. The first record in the set didn't appear. Doing the same query in Webmin produced the first record. Using mysql_data_seek(-result-,-recordnumber-) will move the pointer to the correct first record.

This could be useful for looping through records from a particular place - ie running a query but starting the results at somewhere other than the first record such as paging through a search, though this can also be done using LIMIT (-startpoint-, -number of records to return-)

For some more info see: PHP mysql_data_seek() Function on W3School's site.

About

Notes on Linux, Web Development and anything music or otherwise that distracts me. Related technologies get a mention where appropriate.

Credit has been included where possible to the site where details were found. If anything is included which shouldn't please let me know. Also if you were looking for the FAQ-IT project, please go to either Freshmeat or the project's home at Sourceforge.

Add to Technorati Favorites

Contact

Current sites & links

Valid XHTML 1.0 Transitional

Powered by
Movable Type 3.2