Reply to Re: how is gmail done? html link within what seems to be textarea?

Your name:

Reply:


Posted by Benjamin Niemann on 12/21/06 08:51

Hello,

ferd wrote:

> I've read a few posts about how textareas can't have links or other
> rendered elements, so I'm wondering how gmail does it and if it's
> something I can cook up at home. specifically, I'd like to allow the
> user to type in an entry, very much like typing in this post, and then
> highlight a chunk of text, click a button and assign a hyperlink to it.

This is not done using a TEXTAREA. It uses a feature that some browsers
support (IE, FF, recent versions of Safari and Opera). Basicly any element
can be turned into an 'HTML WYSIWYG editor' by setting a property
(contentEditable) with JavaScript.

> Is this something I can do?

There are a lot of ready-to-use editors. I'd suggest that you look for one
that can be easily customized. Throw out all options but the link feature.
I know that this can be done with HTMLArea (which has been discontinued).


HTH

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация