Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 :urlExternal
 :urlFragment
 :urlInternal
E
 elemUrlAttr, jQuery
 Examples
F
 Functions
I
 isUrlExternal, jQuery
 isUrlFragment, jQuery
 isUrlInternal, jQuery
J
 jQuery urlInternal:Easily test URL internal-,external or fragment-ness
L
 License
M
 Methods
R
 Release History
S
 Selectors
 Support and Testing
 Support methods
U
 urlExternal, jQuery.fn
 urlFragment, jQuery.fn
 urlInternal, jQuery.fn
 urlInternalHost, jQuery
 urlInternalRegExp, jQuery
Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by jQuery.isUrlExternal).
Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by jQuery.isUrlFragment).
Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by jQuery.isUrlInternal).
Get the internal “Default URL attribute per tag” list, or augment the list with additional tag-attribute pairs, in case the defaults are insufficient.
This working example, complete with fully commented code, illustrates a few ways in which this plugin can be used.
Test whether or not a URL is external.
Test whether or not a URL is a fragment in the context of the current page, meaning the URL can either begin with # or be a partial URL or full URI, but when it is navigated to, only the document.location.hash will change, and the page will not reload.
Test whether or not a URL is internal.
Version: 1.0, Last updated: 10/7/2009
Copyright © 2009 “Cowboy” Ben Alman, Dual licensed under the MIT and GPL licenses.
Information about what version or versions of jQuery this plugin has been tested with, what browsers it has been tested in, and where the unit tests reside (so you can test it yourself).
Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by jQuery.isUrlExternal).
Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by jQuery.isUrlFragment).
Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by jQuery.isUrlInternal).
Constructs the regular expression that matches an absolute-but-internal URL from the current page’s protocol, hostname and port, allowing for any number of optional hostnames.
Set or get the regular expression that matches an absolute-but-internal URL.
Close