When you allow users to submit content, and allow that content to include images, there’s always a chance that some user will submit a really large image that will break your layout. One way to solve that is to check the content for large images and resize them using a server-side program. However, sometimes, that is simply not possible. In those cases, we use what’s left- Javascript. (more…)
Posts Tagged ‘javascript’
Automatically Resize Large Images with Javascript
Sunday, May 24th, 2009Ruby Style Blocks in Javascript
Monday, February 23rd, 2009Javascript is a really great language when it comes to flexibility. It is possible to pass code to a function the way you can do with Ruby, albeit a bit more verbose. This is made possible by the fact that javascript allows you to pass a function as one of the parameters of a function. (more…)