removeAttribute ON IE6

i used removeAttribute to remove a onclick attribute on a form so that i can attach a event to it instead.

works on FF doesn't on IE, has to remove hte onclick event by x.setAttribute('onclick','');

Google calendar import export

I tried exporting a event from my google calender to ical format and when i tried importing that file back to my cal (after changing the uid of course) the times were set half an hour ahead. Bug?

cfprocessingdirective leaves a EOF

I was doing some work for a ical export today and noticed that google cal wouldn't accept my exported file.

Futher investigation shows that when i output a string WITHIN cfprocessingdirective there's a extra character appended to the file. Zlaya says its probably a EOF indicator.

CFDUMP for PHP

absolutely fantastic.

http://dbug.ospinto.com/examples.php

Attach Event observers AFTER method declaration

Note to self ALWAYS attach event observers AFTER method declaration.

will never work otherwise, go figure.

TinyMCE this.getDoc() problem solved.

We've been trying to integrate tinyMCE with out CMS Sophia here at Alcassoft.

One issue that keep on cropping up is this 1 javascript error that occurs when you create a instance of tiny, and fail to remove it before initializing it on the same element causing the "this.getDoc()" error.

Well i've solved the issue by checking for the existence of the tiny instance before adding the control.

var tmptiny = tinyMCE.getInstanceById(element.id);
if(tmptiny)//tiny instance exist
{
tinyMCE.removeInstance(tmptiny);
try//try to remove editor if exist
{
tinyMCE.execCommand('mceRemoveControl', false, element.id);
}
catch(e){}
}
tinyMCE.execCommand('mceAddControl', false, element.id);

I really didn't know about "removeInstance" method untile i looked into the code itself.

BlogCFC was created by Raymond Camden. This blog is running version 5.6.002.