Javascript

IFrame height auto resize

Filed under:  Google about "Javascript"

Have you ever found the need to display documents behind IFrames? Wondering how the height could be automatically adjusted to the IFrame contents, so it doesn't display scrollbars?

Well, here's a quick yet effective way to solve this problem by means of a simple javascript file that you just need to add in the header of your pages.

Note though that the solution presented here will not work for documents located on different domains.

Ok, let's see...


Dynamic TextArea Resizer

Filed under:  Google about "Javascript" |  Google about "phpBB"

The first time I saw a resizable textarea was using TinyMCE, then I've seen this implemented in WordPress, then in Drupal. After some time, I started to feel consumed by the need to find this feature in other tools that I often use too, such as phpBB... here's where I finally decided to do something about it, but rather than writing a phpBB MOD, I decided to write a generic DYNamic TextArea Resizer (DYNTAR), a standalone javascript snippet that's easily plugable to any website. It's pretty small, coded with a non-intrusive approach and it should work on any DOM capable browser.

This article explains how it works and how you can add this gadget to your own website.


Syndicate content