This is good news, this way we can view simple txt, images etc 





the farr:// links will ONLY work when found in local files or showhtml text, they will be ignored for security reasons if found on an internet file.
1000>>>test>->test | showhtml <a href='farr://htmlviewurl exacttimenow.com'><img src='%FARRDIR%\AliasGroups\Installed\Core_Aliases\icons\farr\core-internet_www.ico'></a><br>click the image to Internal Surf to exacttimenow.com<br><br><a href='farr://restartsearch gowebpage'>use internal command to launch FARR webpage in external browser</a>>+>^test$
I made a local .html file containing an ultracompact version of the Compact Calendar ( http://davidseah.com/page/compact-calendar ) and added some javascript to make it highlight the current date (= cell with light blue background in screencap) and scroll to the current week on launch. Needs some more work but so far it offers very quick date and week number lookup. Screencap (the red stuff in swedish are names of national holidays):this gave me another thought..Isn't it possible to just make an alias that passes the search string as a parameter to the .html file? Without any plugin needed? (but maybe that was just what what you meant when you added quotes around the term plugin?)
perhaps one way we could give people to write a different kind of farr "plugin"
is to let an alias load an html/javascript page, and automatically set some javascript variables corresponding to the search string.
this is very similar to the dqsd idea but even simpler. FARR would simply load an html page and preset some variables so the javascript on the page could know what was typed into search string, and proceed to handle it the way it wants.
The basic tiddlywiki.com runs in FARR but I can't save:actually there is a farr-related problem here, im trying to fix it now. believe it or not it's related to skin system.
Isn't it possible to just make an alias that passes the search string as a parameter to the .html file?well you are quite right that the search string could be passed as a simple html get parameter, without anything being added to the system by me. clever.
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM NAME="a">
<INPUT TYPE="hidden" NAME="b">
</FORM>
<SCRIPT LANGUAGE="javascript">
var loc = window.location
document.a.b.value = loc
var text = document.a.b.value
function delineate(str)
{
left = str.indexOf("?") + 1;
return(str.substring(left));
}
xx = delineate(text);
document.write(xx+"<br><br>");
function albummatch(zz)
{
var pos=zz.indexOf(xx)
if (pos>=0)
document.write("<a href='" +zz+ "/test.m3u'><img BORDER=0 src='" +zz+ "/folder.jpg' width=200 height=200></a><br>")
}
xarr = new Array("beatles - yellow submarine", "rolling stones - exile on main street", "beatles - abbey road")
for (var i = 0; i < xarr.length; i++) {
albummatch(xarr[i])
}
</script>And the alias:1000>>>album>->test param pass to album search .html | htmlviewurl %FARRDIR%\Helpers\album.html?$$1>+>^alb (.*)$It also needs some folders and files of course. edit: See the array "xarr" above for details.<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM NAME="a">
<INPUT TYPE="hidden" NAME="b">
</FORM>
<SCRIPT LANGUAGE="javascript">
var loc = window.location
document.a.b.value = loc
var text = document.a.b.value
function delineate(str)
{
left = str.indexOf("?") + 1;
return(str.substring(left));
}
xx = delineate(text);
xx = xx.toLowerCase()
var ww = [];
var pos=xx.indexOf(" ")
if (pos>=0)
var ww = xx.split(" ")
else
{
pos=xx.indexOf("%20") //firefox compatibility mode, since javascript debugging is handy in FF
if (pos>=0)
var ww = xx.split("%20")
}
// document.write(xx+ " " + ww[0] + " " + ww[1] + "<br><br>");
function albummatch(zz)
{
var zz1 = zz.toLowerCase()
var pos=zz1.indexOf(xx)
if (pos>=0)
document.write("<a href='" +zz+ "/test.m3u'><img BORDER=0 src='" +zz+ "/folder.jpg' width=200 height=200></a>")
}
function albummatch2(zz)
{
var zz1 = zz.toLowerCase()
var pos=zz1.indexOf(ww[0])
var pos2=zz1.indexOf(ww[1])
if (pos>=0 && pos2>=0)
document.write("<a href='" +zz+ "/test.m3u'><img BORDER=0 src='" +zz+ "/folder.jpg' width=200 height=200></a>")
}
xarr = new Array("beatles - yellow submarine", "rolling stones - exile on main street", "beatles - abbey road")
if (ww[1])
for (var i = 0; i < xarr.length; i++) {
albummatch2(xarr[i])
}
else
for (var i = 0; i < xarr.length; i++) {
albummatch(xarr[i])
}
</script>Original address: https://www.donationcoder.com/forum/index.php?topic=13650.0