Thanks for the explanation and the link BJ. Interesting to read. I've updated http://publicsidebar.tiddlyspot.com/ to use hostname.
<:-) On Thursday, August 20, 2015 at 9:45:07 PM UTC+2, BJ wrote: > > they are defined as > > host <http://www.w3schools.com/jsref/prop_loc_host.asp> Sets or returns > the hostname and port number of a URL hostname > <http://www.w3schools.com/jsref/prop_loc_hostname.asp> Sets or returns > the hostname of a URL href > <http://www.w3schools.com/jsref/prop_loc_href.asp> Sets or returns the > entire URL origin <http://www.w3schools.com/jsref/prop_loc_origin.asp> > Returns > the protocol, hostname and port number of a URL > see http://www.w3schools.com/jsref/obj_location.asp > > Its easier to use hostname so there is less chance that things may break! > > > On Thursday, August 20, 2015 at 6:14:47 PM UTC+1, Mat wrote: >> >> Thanks for the kind words guys. >> >> @BJ regarding: >>> >>> it would be better to use the hostname rather than href as href can >>> include the #tiddlername (eg publicsidebar.tiddlyspot.com/#PublicMenu) >>> >> >> >> I tried to deal with this - but please tell me if this is a bad approach >> - by having the user filter it by *prefix*, i.e; >> >> <$set name="loc" value=<<location 'href'>>> >> <$list filter="[<loc>]+[prefix[http://publicsidebar.tiddlyspot.com]]"> >> >> Would hostname still be a better choice? I am unsure what the difference >> is between host, hostname and origin. >> >> <:-) >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/61f31a10-7d27-4960-836f-8b5e8c1c0267%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.