Posts Tagged ‘javascript’

Javascript URI Address Segment Selection December 15th, 2009 by Sheldon Lendrum

I use the great CodeIgniter, PHP Framework a lot, Most site’s now days I create use it. One of the many good things is that way it handles pages request’s and PHP $_SERVER['REQUEST_URI'] to find which page we are on.
Here is how it works;

http://www.sheldon.lendrum.co.nz/posts/my-segment/my-page/15/2009/12

Now the way we do things, is break the site up, based [...]

Using Mootools Request.HTML response Javascript using $exec October 7th, 2009 by Sheldon Lendrum

Javascript frameworks are great, no matter which one you use their all built to do more, quickly.
I use Mootools for most of my JS needs, and something is I often use is the AJAX request functionality.
Today I needed to send not only HTML back, but Javascript.
Here are the steps I needed to follow to not [...]

Non-Ascii charactors in my AJAX responses !? April 28th, 2009 by Sheldon Lendrum

A while ago, I co-wrote a large site with Ryan while I was working at Zipline Interactive, this site uses Mootools 0.98 as we found to be getting a lot of �������� all through the JAX requested response code.
For the life of US, we couldn’t figure out why? it’s not in the [...]

Controlling Input with Mootools Javascript April 22nd, 2009 by Sheldon Lendrum

On a project that I was recently working on, I had a series of text input boxes that I wanted to be numeric only fields. I have my PHP form validation to check that the data is numeric before entering any information in to the database, and I always use mysql_real_escape_string() on the [...]

BounceBox Update, Version 1.1 March 21st, 2009 by Sheldon Lendrum

I was using an implementation of my BounceBox mootools javascript class on a site I am working on at the moment, and made a couple of additions to the Class that I hope other will enjoy.
The new version1.1 demo can be viewed at http://bouncebox.lendrum.co.nz/ and the change log with a new version 1.1 demo [...]

Alternating row styles with Javascript March 5th, 2009 by Sheldon Lendrum

I am writing a list that outputs a large amount of data in a vertical structure, with many rows the list gets hard to tell which entry is which.
Now, normally I would do this via PHP, something like

< ?php $messages = SQL(‘QUERY TO GET MY MESSAGES’); ?>
< ?php $style [...]

'BounceBox' Mootools Effects Class February 17th, 2009 by Sheldon Lendrum

I sat down to further my Javascript skills a couple of weeks ago and re-wrote a small peice of code that I used on DreamCatcher, A School Careers Application to create ‘Slide Down’ boxes for the Contact Form, Login Form and an Introduction Movie.
I rewrote it using less code and working out heights and sizes [...]

An Amazing use of Javascript. February 1st, 2009 by Sheldon Lendrum

When I looked at Ryan Stemkoski’s technology blog about 11.26 javascript frameworks I though oh yeah, I have used a couple of those, and there was a couple there that I havn’t.
But today I came across this site, Zazzle.com, this site uses some AMAZING javascript ideas, you can [...]