Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

using perl to create a browser editor window

by martymart (Deacon)
on Feb 19, 2003 at 14:41 UTC ( [id://236645]=perlquestion: print w/replies, xml ) Need Help??

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

Fellow Monks,

I'm interested in seeing if anybody has experience with using perl to create a browser window that's capable of editing (& saving) files (text or html or xml files for example) in certain directories on a webserver. I know there may be pretty serious security issues with this. However I'm only going to be doing this on an intranet accessed by only a couple of users. What would be the preferred method for doing this? could Text::LineEditor be used here, or another module maybe?

Martymart

  • Comment on using perl to create a browser editor window

Replies are listed 'Best First'.
Re: using perl to create a browser editor window
by jasonk (Parson) on Feb 19, 2003 at 14:54 UTC

    Any editor-style module like Text::LineEditor is going to require perl to be installed on the client machine, and have some plugin to allow you to run perl code on the browser. An HTML textarea is about as "editorish" as you can get on the client side without a ton of extra work.

Re: using perl to create a browser editor window
by tall_man (Parson) on Feb 19, 2003 at 15:47 UTC
    You could use perlplusplugin to create perl/Tk windows. These windows can even be embedded in the browser window (on Linux only -- in Windows they can only be new windows).

    The Tk::Text widget would be useful both to create html text and to preview mark-up (it can do bold text, etc.). There's an example in Web Client Programming with Perl of displaying HTML marked-up text in a Text widget.

Re: using perl to create a browser editor window
by CountZero (Bishop) on Feb 19, 2003 at 16:40 UTC

    Perhaps WIKI is a bit overkill (depends on what you want to do) but I would definitely have a look at this or this.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://236645]
Approved by krujos
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-23 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found