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 [email protected].
To post to this group, send email to [email protected].
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/87d01662-da7b-4dd3-b81e-d5b5aaa1fd38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to