b310 has asked for the wisdom of the Perl Monks concerning the following question:

Hello:
I'm trying to create a form for a user so they can update their web page. The page is a newsletter.

The user would like the ability to format the text that she is typing into the form so the result on the web page is appealing.

In order to accomplish this I need a toolbar consisting of: bold, italic, underline, font name, font size, font color, etc.

How do I go about trying to code this toolbar? Can anyone help me out?

Thank you in advance.

Considered
friedo: Delete - nothing to do with perl.
Unconsidered
Arunbear: Enough keep (and edit) votes cast to keep the reaper away
Keep/Edit/Delete: 7/2/6

Replies are listed 'Best First'.
Re: Trying to create a toolbar
by fglock (Vicar) on Feb 04, 2005 at 16:43 UTC
Re: Trying to create a toolbar
by Tanktalus (Canon) on Feb 04, 2005 at 16:05 UTC

    At this point, it sounds like you need help designing some HTML and/or JavaScript to provide this type of functionality. Which really has nothing to do with Perl.

    And, of course, that's probably not entirely true - you're probably writing all the CGI in perl. And there may be modules on CPAN that produce the javascript you want.

    (Anyone else ever think that PM should have a section labelled "Seekers of Perl/CGI Wisdom"? Perl/HTML/JavaScript can be so intertwined, as is evidenced by all the modules on CPAN dealing with producing HTML, and the few that deal with producing Javascript...)

    Anyway - until there is such a section, you might be best off if you look for Javascript-oriented forums on other sites. Unfortunately, I'm not into JS, so I'm not a resource for that. Google probably is, though.

      Thank you for your reply. I didn't think Perl was the answer. No hurt in asking.
Re: Trying to create a toolbar
by Frantz (Monk) on Feb 04, 2005 at 16:01 UTC
    You are talking of a web inteface ...

    You must trap some client-side events. I think there is no solution in perl (server-side language).

    use javascript to solve your problem.