Posted by: Stephen Gray on: 27 July, 2009
Another quick one. Reading around it seems to be an issue. You make an AJAX call within a function and you want the call to be synchronous so that you can use the data from the call in the function scope.
AJAX calls are obviously asynchronous. jQuery has a ‘async: false’ option in AJAX calls but [...]
Posted by: Stephen Gray on: 24 April, 2009
Hello all,
On my first post on this blog I posted a small snippet to use a small regex pattern in jQuery selectors.
You can find the post here: http://colourgray.wordpress.com/2008/08/05/jquery-wildcard-selectors/
I was reading through some comments and posts on some incoming links and it seems it wasn’t working for anyone anymore. I just tested it myself and unfortunately [...]
Posted by: Stephen Gray on: 22 September, 2008
I’ve been working over the weekend on a site and I got to the part of writing the client side MVC using jQuery (because I love the idea now!).
I found out that jQuery has a nice little method for loading external scripts into the page at run time called getScript(). It basically gets the contents [...]
Posted by: Stephen Gray on: 28 August, 2008
jquery, mvc, framework
Posted by: Stephen Gray on: 11 August, 2008
This is just a quick tutorial (more of a code snippet) for creating a very simple plugin for jQuery.
Of course, there are lots of tutorials around for this, this is mainly for reference
$.fn.myFunction = function()
{
// use the following loop to iterate through all objects
// returned by the jQuery selector which was used
return [...]