Wed, Jun 18, 2008
I was just using jQuery in an application I'm building to clone a table row which includes a couple of select elements which are preselected when the page loads. Now when I clone the row I want a clean sheet so both selects need to be reset and the input needs to be cleared too. The input is easy, you simple reference the input and set val(""). In my example I store the cloned row in a variable called newTR and then find the input that I want to clear like... more
Fri, May 23, 2008
Nonoba.com have just released details for their Multiplayer Flash games API for Flash developers. This should allow pretty much anybody with rudimentary flash skills to create multiplayer games, without any hosting costs.
The API supports the full range of multiplayer games, from simple turn based games to more complicated real-time games. To show these capabilities, they have released a new game called Nonoba Racer. They have also ported some of our old creations to act as examples in the SDK, such as Fridge Magnets, Multiplayer Asteroids and DrawPad.
Since they're so confident that they're on the right path with their Multiplayer API, they're also announcing their first big game competition with $20.000 USD in prices and a first price of $15.000 USD, for the best game to be built on the Multiplayer API.
Sign up for beta access at: Signup, and get more info at:
Overview.
Thu, Feb 28, 2008
I always get stuck on one problem with PHP and that is referencing dynamically created array variables. Imagine I have an array of values, say country codes: 'uk,us,de,es' and I want to output data into array variables that have the name $array_countrycode.
It took me a while to get to the bottom of this, I knew it had something to do with Variable Variables but the documentation doesn't really cover this kind of example. Eventually I found the solution I was looking for:
${"array_{$code}"}
I have the country codes stored in an array which I loop through:
$country_codes = array("au","de","es","fr","it","nl","uk","us");
foreach($country_codes as $code) {
// then I can reference the array to do whatever I like
${"array_{$code}"}
// would reference $array_au, $array_de etc.
}
This might be old news to some people but it had me scratching my head for quite a while!