Form/IM_FORM
var
tmp/mob/chatter/SOURCE
tmp/mob/chatter/TARGET
tmp/MSG
message
message_interface = TEXTAREA
message_size = "3x50"
New(var/mob/chatter/S, var/mob/chatter/T, var/msg)
SOURCE = S
TARGET = T
MSG = msg
form_window = "window=[SOURCE.name]_pim_[TARGET.name];size=450x175;can_resize=0"
..()
DisplayForm()
ProcessForm()
SOURCE << "Hello?"
MSG += "<b>[SOURCE.name];</b><br>[message]<br><hr width=400>"
SOURCE << browse("<title>Private from: [TARGET.name] - PIM Window</title><pre>[MSG]<pre>","window=[TARGET.name]_private")
TARGET << browse("<title>Private from: [SOURCE.name] - PIM Window</title><pre>[MSG]<pre>","window=[SOURCE.name]_private")
HtmlLayout() return \
{"<title>[TARGET.name] | Private Message</title>
<body scroll=no>
<b style='font-size: 1.5em;'>[TARGET.name] | Private Instant Message</b>
<br>[message]<br>[submit]"}
ID:149684
Mar 8 2002, 2:23 am
|
|
I'm trying to use Dantom's HtmlLib to create a browser-based instant message system. I think everything is correct, but nothing happens when I click the Submit button on the form. I don't even get a friendly "Hello?"... any thoughts?
|
Mar 8 2002, 6:31 am
|
|
Are you sure you're putting return..() at the end of all Topic() calls because submit calls Topic() and if one of your Topic()s is missing that it will never call.
|
In response to Nadrew
|
|
Yes, that was the problem. Thanx Nadrew!
~X |