Archive for the ‘Javascript’ Category
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
Tags: Javascript, jquery, lightwindow, prototype js, symfony
Posted in Javascript, jQuery | No Comments »
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
Tags: Javascript, jquery, symfony, upload
Posted in Javascript, jQuery | No Comments »
Thursday, November 20th, 2008
The other day I needed something to check which version of flash player a user has. It’s all connected to the new problems with uploading that were introduced in Flash player version 10. For some reason the solution we are using needs to know if the player is of version 10 or lower in order to act accordingly. For some reason this will solve a problem with IE6 having a player version lower than 10, don’t ask me why, I’m not the one implementing this. My only mission was to detect version.... Read More
Tags: flash, Javascript
Posted in Javascript | No Comments »
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
Tags: css, draggables, html, jquery, jquery ui, resizables
Posted in HTML + CSS, Javascript, jQuery | No Comments »
Monday, November 10th, 2008
Followed by “AJAX in Java alone! JavaScript coding not required. Try it.” states an Adsense ad. ... Read More
Tags: Java, Javascript
Posted in Java, Javascript | No Comments »
Friday, October 31st, 2008
Update: There is now a real world project using this multi file up loader, with automatic watermarking of pictures to boot: Image manipulation and watermarking in PHP with GD2.... Read More
Tags: actionscript 2, flash, jquery, PHP
Posted in Flex, Flash and AMFPHP, Javascript, jQuery | No Comments »
Thursday, October 23rd, 2008
I think I’ve finally managed to get a handle on prototyping with JavaScript, after all that lisping and jQuerying it turned out to be a formality in the end. I have to thank Steve for finally getting my ass off the couch though.... Read More
Tags: inheritance, Javascript, prototyping
Posted in Javascript | No Comments »
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
Tags: html decode, html encode, Javascript, jquery, regex
Posted in Javascript, jQuery | No Comments »
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
Tags: date manipulation, jquery, sorting, tinysort
Posted in Javascript, jQuery | No Comments »
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
Tags: ajax, jquery, Pico Lisp
Posted in Ajax, Lisp, Pico Lisp, jQuery | No Comments »