Archive of UserLand's first discussion group, started October 5, 1998.
Re: Edit In Applet(Update)
Author: Josh Lucas Posted: 6/2/1999; 12:29:56 PM Topic: Edit In Applet Msg #: 6957 (In response to 6949) Prev/Next: 6954 / 6958
So, I've been playing around a little this afternoon and have done a few things. The applet now has a simple 'Style' menu which can be seen here...http://208.204.52.53:10000/menu.gif
The menu can insert bold, italic, or both... You select text, choose the appropiate style, and the HTML code is inserted into the text... Not rocket-science but it is a start... I'm planning on adding more menus eventually...
The second focus was to set the message text in a DG via xml-rpc. I wrote the following handler which does the job for me.
on setMessageText(struct) { local (adr = @system.temp.msgTable); adr^ = struct; local (adrmsgs = @[mainresponder.discuss.openfile()].discuss.messages); local (msgAdr = @adrmsgs^.[string.padwithzeros (adr^.msgnum, 7)]); msgAdr^.body = adr^.body; return (true)}Now the applet can save its changes to the DG. There are still some security issues that I'm sure have to be worked out but again it is a start.
josh
There are responses to this message:
- Re: Edit In Applet(Update), André Radke, 6/2/1999; 2:03:42 PM
This page was archived on 6/13/2001; 4:50:34 PM.
© Copyright 1998-2001 UserLand Software, Inc.