Namespace your Javascript

October 23, 2009

We all know writing code with global functions and variables if bad news so what’s the alternative in Javascript to writing lots of objects? I dont think Javascript is very good as an object orientated language and doesnt do this sort of thing very well but you can put these[...]

How to POST data via Javascript

June 11, 2009

Update: Or instead you could use the excellent jQuery library which has methods for this. Another thing I needed to do with Javascript was send quite a lot of data from the browser to code on the server, I was already using GET (where the data is in the URL[...]

How to change FORM onsubmit function

June 11, 2009

Ok, two Javascript post together here… I’ve been doing a lot with Javascript recently (results to follow shortly!). One thing that took me a while to work out how to do was to dynamically change the onsubmit action standard html form. So, you have a form and you want a[...]