You are here: Re: get contents of iframe « HTML « IT news, forums, messages
Re: get contents of iframe

Posted by markww on 04/21/06 23:06

Hi Jonathan,

I wanted to use an iframe so that the user could do some limited rich
text formatting, and I wouldn't have to script anything extra. I would
like there to be a button beneath the iframe such as 'edit' - in which
case the user can start typing in there, make text bold, type weblinks
like www.something.com. Then they could just hit 'stop edit', in which
case I'd just turn design mode 'off' and the weblinks they typed become
active, the rich text maintains its formatting, etc.

All I'd have to do is flip the designMode switch.

Textareas as I understand don't allow for such formatting or clickable
links?

Thanks

Jonathan N. Little wrote:
> markww wrote:
> > Hi,
> >
> > Yes there is no initial content, but the user is allowed to type in the
> > iframe with designMode = 'on' - I just need to get whatever they have
> > typed into the iframe. I'll give what you posted a try,
> >
> > Thanks
> >
> If I understand you correctly you are using an IFRAME to get user input?
> HTML already contains an element for such purpose, it is a FORM with a
> TEXTAREA. Why the re-engineering?
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIO
> http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this 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

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