PHPDevHead

Web Development Ramblings and Ideas..

 

Share code with pastie! September 4, 2008

Filed under: CSS, Javascript, PHP — admin @ 8:14 pm

I’m often discussing Javascript/PHP/HTML in a chat window and usually paste chunks of code I want to show the other people into chat.  Problem is, quite often the recipient gets smileys all through code or it does’t render properly on their chat client or the snippet gets lost along the way.

http://www.pastie.org/ looks like a pretty sweet way to share those snippets while maintaining code highlighting, formatting and also for keeping it referenced for later usage.  It’s a free service (donations accepted) so pretty handy for quickly showing off your latest ubersauce function.!

 
 

Firefox 3 Unresponsive Script July 18, 2008

Filed under: Firefox, Javascript — admin @ 8:44 pm

Well I’ve been enjoying Firefox 3’s new features its improved speed and style.  Until the last update.

I’ve started getting numerous javascript related issues on both OS X and Windows XP while using Firefox 3.  Any site or application that has AJAX features or a large amount of javascript (which, lets face it is most sites on the web now), could trigger the unresponsive script error.

As was the case with Firefox 2, the issue is 9/10 related to a plugin.  For doing web development I use about 10 different plugins for firefox and I tracked down the issue to Firebug.  Firebug disabled, back to smooth browsing.

 
 

Why I like YUI June 18, 2008

Filed under: Javascript — admin @ 6:26 pm

I usually use JQuery for javascript work, the shortcuts for dom manipulation, XPath and the plethora of plugins are fantastic.  But recently I had to find a nice calendar for a booking application.  Something that I could easily populate with booked dates, have date ranges, different date renderers (colours/formatting on the date boxes).

I gave YUI calendar a try and if did it all out of the box.  They have created it in a way that makes it highly extensible and easy to use.  You can also plug in AJAX features relatively easily (which I didn’t do for my project but would be ideal for a booking/date management system).

Its also a great project to support because its open source and the developers at Yahoo have been really been giving some great tools to the development community over the last few years.

Also YUI has GREAT documentation.  Check it out..