<html>
<head>
<!-- Allows immediate display of various wikis at one keypress event:
a=mine, c=PPR, d=Meatball, ...
Highly recommended! Only IE, no Netscape. -->
<!-- home: http://c2.com/cgi/wiki?HtaWikiBrowser -->
<!-- author: http://c2.com/cgi/wiki?FridemarPache -->
<title>WikiBrowser As HtmlApplication (IE only)</title>
<HTA:APPLICATION ID="WikiBrowser" APPLICATIONNAME="WikiBrowser" windowstate="maximized">
<script language=JScript>
function help1(){
alert('You got this help box by pressing F1. '+'\n'+ '\n'+
'Press Alt-1 to set the focus on the Commandline.'+'\n'+'\n'+
'Press a single key to navigate to'+'\n'+
'a=AcadWiki:RecentChanges'+'\n'+
'b=PhpWiki:RecentChanges' +'\n'+
'c=Wiki:RecentChanges' +'\n'+
'd=Meatball:RecentChanges' +'\n'+
'e=Woytech:RecentChanges' + '\n'+
'f=PhpWiki:PhpWikiBrainstorm' +'\n'+
'g=DseWiki:RecentChanges' +'\n'+
'x=AcadWiki.Edit:WikiBrowser');
window.event.returnValue = false; //suppressing the general Windows help
}
</script>
</head>
<body>
a=AcadWiki, b=PhpWiki, c=Wiki, d=Meatball, e=Woytex, f=PhpBrainstorm, g=DseWiki <i>x=editthis</i><br>
<label for="TheAddress" accesskey="1" ></label>
<input type=text value='' onhelp="help1()" id=TheAddress style=width=100%>
<span onkeypress="help1()">
<iframe src="" id=TheFrame style="width: 100%; height: 100%"> </iframe>
</span>
<script language=JScript>
function navigate() { document.all.TheFrame.src = TheAddress.value }
function jumpto(url) { TheAddress.value=url;
window.event.keyCode=0;
navigate();
TheAddress.focus(); // needs to be in a "on target document loaded" handler
}
function clickShortcut() {
cc=window.event.keyCode;
switch(cc){
case 13: navigate();break;
case 97: // a
jumpto("http://xarch.tu-graz.ac.at/autocad/wiki/RecentChanges");break;
case 98: // b
jumpto("http://phpwiki.sourceforge.net/phpwiki/index.php?RecentChanges");break;
case 99: // c
jumpto("http://c2.com/cgi/wiki?RecentChanges");break;
case 100: // d
jumpto("http://www.usemod.com/cgi-bin/mb.pl?RecentChanges");break;
case 101: // e
jumpto("http://www.pobratyn.com/phpwiki/index.php3?RecentChanges");break
case 102: // f
jumpto("http://phpwiki.sourceforge.net/phpwiki/index.php?PhpWikiBrainstorm");break;
case 103: // g
jumpto("http://www.wikiservice.at/dse/wiki.cgi?RecentChanges");break;
case 120: // x
jumpto("http://xarch.tu-graz.ac.at/autocad/wiki/WikiBrowser?action=edit");break;
}
}
TheAddress.focus();
TheAddress.onkeypress =clickShortcut;
</script>
</body>
</html>
Initially from
http://c2.com/cgi/wiki?HtaWikiBrowser, where I left a link to this page to avoid unnecessary double work. (By the way: my email answer from Yahoo bounced back due to a filter-program ?). Wiki seems to be better than email ;-) in this case.
Jump-lists should be read into an array via a file/URL, being used for help and a general jumpto(ar[i?) statement.
I don't like (place-consuming) buttons. What about a totally keyoperated interface. Within the Iframe's document editing via keymakros should be possible.
E.g. keying ".if" (without the quotes) should expand into: "if (|) { . }" , leaving the cursor at "|" for inputting the condition. Another special keypress should position the cursor at ".".
Being in Wiki-Edit-Mode, a special keypress should let jump from the current "Wiki Link Word" to its target wiki page opened in edit-mode.
Later on all the editing should be in a uniform
Wiki:WysiwygWiki DHML edit component, letting the WikiBrowser do the dirty work of translating the HTML-code into the appropriate code of the target wiki pages (handled on different
Wiki:WikiEngines).
Scripters from
news:microsoft.public.inetsdk.programming.dhtml_editing are welcome.
