Category

Archive for the 'Javascript' Category

Page up on Prototype

( Javascript and pageup )

Prototype has been given the go-ahead for testing in page up admin system. Yay, as it makes my job more enjoyable.

Actually incorporating the Rich Text Editor

May be more difficult than building it..
The rich text editor is built into an ASP ‘control’ so it can be re-used and customized server-side, currently all of the HTML for the textarea, iframe and toolbars are put into the page through this control depending on it’s properties. A script tag is embedded into the […]

Rich Text Editor.. and another iteration

( Javascript and (X)HTML and pageup )

The Rich Text Editor in all it’s glory..
One thing I haven’t figured out is how to register key event listeners on the iframe’s in Opera.
I managed to get editorKeyUpHandler being called in Safari and Firefox but haven’t yet tamed Opera - Any clues?
I am loving Prototype, as I’ve learnt more about it over the last […]

Rich Text Editor - Third Iteration

linky linky .. let me know what you think.
I’m finished with this little project now.
I ended up going back to a global array to hold references to the editors, IE made things difficult.
I also reverted to using inline javascript commands on the buttons in the toolbar as IE was losing the selection in the editor […]

Rich Text Editor - Second Iteration

( CSS and Javascript )

linky linky
I’ve moved to an OO design, using DOM, Event listeners and made it sexier - I faced some interesting challenges along the way.
One key thing I picked up was how to link an event to a specific object, i’ve seen many different attempts at doing this -
Some use global variables to keep references of […]

simple cross browser rich text editor

I’ve looked in the past on multiple occasions to find a simple no-frills rich text editor and come up blank.
Of course there a good open-source fully-featured rte’s like tinyMCE and FckEditor, but they are a bit overkill for a simple editor. I found this one that comes close to what I was wanting […]

Before XMLHttpRequest.. there was iframe

( Usability and AJAX and Javascript )

I’m working on a search control at the moment, the current flow is:
A javascript function on page1 takes your input and set’s an iframe’s src=”page2″
page2 either
writes a javascript function to send back a single result to page1
OR launches page3 in a ModalDialog Which contains an […]

A first firefox extension

I’ve got a simple idea for a first firefox extension

If you visit the page above and Ctrl + Space you get little green numbered markers that you can move around the page. I’ve created screenshots for documentation of interfaces a few times and to save me ever having to take a screenshot, paste it […]

Ajax, a one liner

( Usability and AJAX and Javascript )

I think the most common feature of Ajax applications to use it for partial page updates.
A second simple Ajax example
Ajax.updatePanel(panel, ‘documents/ajax_text.html’);
It empties ‘panel’, gives you a loading indicator, requests the page, upon response updates panel with content and gives you the fade.
I’ll typically be requesting a php script because that’s what i’m most comfortable with […]

My little Ajax library

( AJAX and Javascript )

I’ve thoroughly enjoyed reading ‘Simply Javascript’ The new Sitepoint title, as well as ‘Bulletproof Ajax’ by Jeremy Keith.
With our powers combined i’ve made a lightweight Ajax object that is easy peasy to implement and boasts a stunning 2.0 style fade from yellow function!
Seriously though, i’m pretty chuffed with how much I’m being able to get […]