Web Development Blog

Web-Development Articles

Insert Flash Media Embed Code TinyMCE Plugin

03.22.2010 02:19PM by Evan Johnson

I’ve run into a problem providing my clients good, easy-to-use media embed functionality with the existing JavaScript WYSIWYG editors. The big players, CKEditor (formery FCKEditor) and TinyMCE both provide a "Flash" button which works okay with YouTube and other large video providers, but what about embedding a Picasa slideshow? None of the WYSIWYG editors come with plugin to just insert some HTML code....

Read the full article...

Comment [1]

Learning Drupal Module Dev: Dependent AHAH/AJAX Forms

03.21.2010 11:32PM by Evan Johnson

So, I've been working on a simple module for a Drupal project lately. I wanted to have two administrator settings for the module, the second of which depends on the first. A "dependent dropdown". It would be cool if it was "AJAXy" too, I thought. Well, it just so turns out that in Drupal 6 there are built in AHAH (Asychronous HTML and HTTP) functions in the Forms API...

Read the full article...

Comment [4]

How to programmatically create Views in Drupal 6

01.14.2010 10:08PM by Evan Johnson

So, this stumped me for a while. I needed my small custom Drupal module to select a bunch of nodes based on a CCK Date field and the Publish status. It is a pain to query the CCK tables directly, so every forum post I could find told me to do this via Views. That’s all well and good, but the instructions for doing this all involved creating...

Read the full article...

Comment [2]

Unobtrusive jCarousel page/tab external controls with jQuery

01.14.2010 10:49AM by Evan Johnson

I am using the very slick and enjoyable jCarousel plugin for jQuery on a new project to display featured content on the front page. I wanted to use the external controls to allow users to easily jump between slides. However, all the examples I found required hard-coding the control links into the document HTML. This is not best practice because when JavaScript is disabled and the...

Read the full article...

Comment