Thursday, August 24, 2006

Ajax File Upload Monitored

This is cool but complicated...sort of... too many cool things could be done with this.

http://blogs.missiondata.com/?p=28

Monday, August 14, 2006

Overridding TinyMCE behaviour

Ok so I think I figured out a way to override the popup windows in tinyMCE.

It will require a re-write of the openWindow method:


openWindow

void openWindow( template, args)

Opens a popup window based in the specified input data. This function is used for all popup windows in TinyMCE. These are the current template TinyMCE_Engine.prototype.keys = file; width, height, close_previous.

Parameters:
template - Popup template data such as with, height etc.
args - Popup arguments that is to be passed to the popup such as custom data.


The re-write would push to the "internal" windowing system we are using. Hopefully there would not be too many issues with this. I'll spike it out and post the results in the comments field of this post.

TinyMCE - Ajax and Content

So I was stumped on this one for a while:

With tinyMCE you can use text areas as wysiwyg editors. Well, when you try to submit the content using ajax methods you may try this...

var htmlContnet = document.getElementById(id_of_textbox).value;

this will NOT work (trust me, I found out the hard way)

instead you can get/set the content as follows

my_html_content = '

Hi!

';
tinyMCE.getInstanceById(id_of_the_parent_textarea).contentDocument.body.innerHTML = my_html_content;

RTFM!!!!
(check out: this)

Tuesday, August 01, 2006

The javascript onload problem

Have a look at
http://dean.edwards.name/weblog/2005/09/busted/

and see this brilliant solution.