[pmwiki-users] Popup messages

IchBin weconsul at ptd.net
Sat Oct 28 16:55:09 CDT 2006


Tegan Dowling wrote:
> On 10/28/06, Dominique Faure <dominique.faure at gmail.com> wrote:
>> On 10/28/06, IchBin <weconsul at ptd.net> wrote:
>>> Say I have a paragraph of text or a list of terms displayed on a page.
>>> In that paragraph or list I may have n->terms that I would like to be
>>> able to display its definition. I really do not want to load a page of
>>> definitions and then reference directly to it with a [[#term]]. I would
>>> like to stay on the same page as the term.
>>>
>>> When the user hovers over a term I can popup a small message window with
>>> its definition. Something on the lines of a queued process on a word
>>> hover. Then I guess it would be more like a XMLHttpRequest call. Hope my
>>> question make sense.
>>>
>>> Just wondering if there are any recipes, or part of a recipe, that could
>>> help me or get me going in the right direction? Do people build recipes
>>> that can utilize javascript.  Sorry, I do not have a clue.
>>>
>> You may have a look at DomTT!
> 
> Markup Extensions recipe, at
> http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions, includes markup
> for {abbr|abbreviation} and {:term:definition}.
> 
> I would love to have a way, presumably with a javascript recipe, to do
> actual pop-up windows, though.  An extension of %newwin%, I would
> hope, but allowing one to specify dimensions, title, and position on
> the screen.  Anyone have such a thing, OR can anyone tell me if this
> would work -- say, if I were to enable html on the pages where I
> wanted to use it, and then find some standard method?

I am sure that could be done with Javascript and XMLHttpRequest calls to 
the server for a php script and communicate ala parameters return the 
requested messages in a stylized javascript popup. Could have a message 
class to encapsulate that piece. Just do not have the pieces together 
yet. Anyway.. Thanks, I will look at this MarkupExtensions recipe.

-- 
Thanks in Advance...                  http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA          http://weconsultants.phpnet.us
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)





More information about the pmwiki-users mailing list