[Encore] A couple of questions re WEB display.
Kevin Jepson
kevijeps at telusplanet.net
Sun Nov 12 20:26:51 MST 2006
Hi folks
I have a couple of questions for the all you programmer wizards.
These come from the work I've been doing trying to integrate some of the
objects in my MOO into the WEB display of Xpress (like the weather rooms for
example).
1) Why does having a custom _html or look_self verb mean that the room's WEB
display is not shown without an explicit look?
2) What is the trigger for updating the WEB display? Where in the system is
the code that decides when the display should be updated.
3) This one is pretty cool but I'd like to know WHY it works.
If I include the following code block in a custom _html verb the resultant
html page has the whole enCore header, css and display properties
automatically.
====
title = this:titlec();
html = {};
html = HYPERLINK "mailto:\{@html"{@html, tostr(" <link rel='shortcut icon'
href='http://seafarer.no-ip.biz:8000/seafarer/moo/images/system/favicon.ico'
/> <title>", title, "(Seafarer)</title>")};
title = tostr("<div class=\"title\">", this:titlec(), "</div>");
htmlHYPERLINK "mailto:html=\{@html,title"={@html,title};
====
Like I said this is very cool but I can't for the life of me figure out why
it works.
These six lines replace almost 20 lines of code copied from the various
$encore_web_util verbs to do the same thing?!?
Any thoughts?
Ciao
KJ
=======================================================
Kevin Jepson R.E.T.
President
4K Consulting Inc.
An't nanum hearm deth, doth hwaet ye willath.
PHONE: (403) 875-8372
Email: kevijeps at telusplanet.net
=======================================================
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.3/530 - Release Date: 11/11/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/encore_encore-consortium.org/attachments/20061112/847b67f6/attachment.html
More information about the Encore
mailing list