Hta Wiki Browser

 <html>
 <head>
 <title>Rudimentary WikiBrowser As HtmlApplication</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=Wiki:RecentChanges'+'\n'+
 'b=Meatball:RecentChanges' +'\n'+
 'c=Wiki.Edit:HtaWikiBrowser');
 }
 </script>
 </head>

<body scroll=auto style=margin=0>
<Press enter to navigate>
 <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: 98%" frameborder=1> </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 an "on target document loaded" handler }

function clickShortcut() { cc=window.event.keyCode; switch(cc){ case 13: navigate();break; case 97: jumpto("http://c2.com/cgi/wiki?RecentChanges");break; case 98: jumpto("http://www.usemod.com/cgi-bin/mb.pl?RecentChanges");break; case 99: jumpto("http://c2.com/cgi/wiki?edit=HtaWikiBrowser");break; } } TheAddress.focus(); TheAddress.onkeypress =clickShortcut; </script> </body> </html>

// Take this rudiment for improving it collectively. You can even use this tool to speed-up the development and publishing of its new features. -- FridemarPache

See http://xarch.tu-graz.ac.at/autocad/wiki/WikiBrowser for modifications/refinements.

From WikiBrowser

I've tweaked the code here slightly. -- vk


EditText of this page (last edited March 14, 2012) or FindPage with title or text search