Archive for the ‘jQuery’ Category

Detecting parent URL with AS3 and jQuery – redux

Friday, January 23rd, 2009

In an earlier article I spoke about changing the stage size based on the URL of the page that loads the ShockWave. ... Read More

Changing Flash stage size from ActionScript

Sunday, January 4th, 2009

Changing the stage size can’t really be done in a pure sense just with AS, unfortunately.... Read More

jQuery with LightWindow and Prototype JS

Thursday, November 27th, 2008

What a day yesterday was. Supposedly if you do the whole jQuery no conflict stuff it will be able to play ball with Protoype.js, not true. I wanted to retrieve the value of the currently selected option in a select box with jQuery but for some reason all that monkey patching going on in Prototype just tripped it up.... Read More

Upload in IFRAME, update parent document with Ajax and jQuery

Sunday, November 23rd, 2008

Because of all the recent problems with Flash uploading I just opted for uploading in an IFRAME. The IFRAME will reload itself when the upload is finished. When this happens it will trigger a jQuery JavaScript that will update a DIV in the document that contains the frame. It’s really easy, the below example is from a Symfony project so we can’t use the $ sign because it will conflict with the prototype library.... Read More

jQuery UI draggable and resizable combination

Wednesday, November 12th, 2008

I’ve just taken a look at how a rich interface for creating invitations could be created with jQuery UI’s draggables and resizables.... Read More

Flash 10 and jQuery multi-file uploader

Friday, October 31st, 2008

Update: I’m not using flash for uploads anymore, XHR is better and more stable if you can require users to use at least Chrome 6 or Firefox 3.6 for instance.... Read More

jQuery plugin – HTML decode and encode

Tuesday, October 21st, 2008

I just found myself having encoded HTML within parts of the DOM (don’t ask me why) and I thought it would be cool to be able to parse it and encode/decode the parts where it’s needed. ... Read More

jQuery – sorting DIVs by date

Saturday, October 18th, 2008

I just had to sort a list of DIVs by date with the newest date first. To add complexity to the problem the dates could be either in Atom or RSS2 format. The sorting itself is done with TinySort. A really useful little library.... Read More

jQuery and Pico Lisp

Monday, October 6th, 2008

The heart of the problem with making jQuery.post work with the PicoLisp server is simple once found (thanks to Alex for helping me find it). Apache seems to use the Content-Length header to determine the length of the argument sent by XMLHttpRequest.send(), the Pico server doesn’t bother with determining the the length. It looks for a newline at the end instead.... Read More

Integrating with jQuery – Adding Pagination

Tuesday, September 30th, 2008

This stuff can be seen as a continuation of an earlier tutorial integrating external search into a MODx site, i.e. a standalone search logic separate from MODx. This approach is however not limited to any kind of CMS or solution whatsoever, it’s totally agnostic through the use of Ajax. ... Read More