Permalink
Browse files

added urlFragment stuff. the plugin is at least 800% better now

  • Loading branch information...
1 parent 8279730 commit 4d661aa7d437c1c5b07af9020c59f1cca56a336c @cowboy committed Oct 8, 2009
View
@@ -1,19 +1,13 @@
# jQuery urlInternal #
[http://benalman.com/projects/jquery-urlinternal-plugin/](http://benalman.com/projects/jquery-urlinternal-plugin/)
-Version: 1.0pre, Last updated: 10/4/2009
+Version: 1.0pre, Last updated: 10/7/2009
jQuery urlInternal allows you to easily test internal- or external-ness for any relative or absolute URL. Includes element filtering methods and pseudo-selectors.
Visit the [project page](http://benalman.com/projects/jquery-urlinternal-plugin/) for more information and usage examples!
-## License ##
-Copyright (c) 2009 "Cowboy" Ben Alman
-Licensed under the MIT license
-[http://benalman.com/about/license/](http://benalman.com/about/license/)
-
-
## Documentation ##
[http://benalman.com/code/projects/jquery-urlinternal/docs/](http://benalman.com/code/projects/jquery-urlinternal/docs/)
@@ -41,4 +35,10 @@ Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
## Release History ##
-1.0pre - (10/4/2009) Pre-Initial release
+1.0pre - (10/7/2009) Pre-Initial release
+
+
+## License ##
+Copyright (c) 2009 "Cowboy" Ben Alman
+Licensed under the MIT license
+[http://benalman.com/about/license/](http://benalman.com/about/license/)

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -11,17 +11,17 @@
-<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; <a href="#J">J</a> &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="J"></a>J</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery_urlInternal:Easily_test_URL_internal-or_external-ness" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>jQuery urlInternal:<wbr>Easily test URL internal-or external-ness</a></td></tr></table>
+<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; <a href="#J">J</a> &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="J"></a>J</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery_urlInternal:Easily_test_URL_internal-,external_or_fragment-ness" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>jQuery urlInternal:<wbr>Easily test URL internal-,external or fragment-ness</a></td></tr></table>
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.0pre, Last updated: 10/4/2009</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.0pre, Last updated: 10/7/2009</b></div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
-<div id=Menu><div class=MEntry><div class=MFile><a href="../files/jquery-ba-urlinternal-js.html">jQuery urlInternal: Easily test URL internal- or external-ness</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Files</div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="Selectors.html">Selectors</a></div></div></div></div></div><script type="text/javascript"><!--
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/jquery-ba-urlinternal-js.html">jQuery urlInternal: Easily test URL internal-, external or fragment-ness</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Files</div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="Selectors.html">Selectors</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Selectors">Selectors</option></select></div></div><!--Menu-->
@@ -11,25 +11,25 @@
-<div id=Index><div class=IPageTitle>Function Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; <a href="#E">E</a> &middot; F &middot; G &middot; H &middot; <a href="#I">I</a> &middot; J &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; <a href="#U">U</a> &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.elemUrlAttr" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>elemUrlAttr</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.isUrlExternal" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>isUrlExternal</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.isUrlInternal" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>isUrlInternal</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.fn.urlExternal" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>urlExternal</a>, <span class=IParent>jQuery.fn</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.fn.urlInternal" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>urlInternal</a>, <span class=IParent>jQuery.fn</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.urlInternalHost" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>urlInternalHost</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.urlInternalRegExp" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>urlInternalRegExp</a>, <span class=IParent>jQuery</span></td></tr></table>
+<div id=Index><div class=IPageTitle>Function Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; <a href="#E">E</a> &middot; F &middot; G &middot; H &middot; <a href="#I">I</a> &middot; J &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; <a href="#U">U</a> &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.elemUrlAttr" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>elemUrlAttr</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.isUrlExternal" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>isUrlExternal</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.isUrlFragment" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>isUrlFragment</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.isUrlInternal" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>isUrlInternal</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.fn.urlExternal" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>urlExternal</a>, <span class=IParent>jQuery.fn</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.fn.urlFragment" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>urlFragment</a>, <span class=IParent>jQuery.fn</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.fn.urlInternal" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>urlInternal</a>, <span class=IParent>jQuery.fn</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.urlInternalHost" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>urlInternalHost</a>, <span class=IParent>jQuery</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-urlinternal-js.html#jQuery.urlInternalRegExp" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>urlInternalRegExp</a>, <span class=IParent>jQuery</span></td></tr></table>
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction>Get the internal &ldquo;Default URL attribute per tag&rdquo; list, or augment the list with additional tag-attribute pairs, in case the defaults are insufficient.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt2"><div class=CFunction>Test whether or not a URL is external. </div></div><div class=CToolTip id="tt3"><div class=CFunction>Test whether or not a URL is internal. </div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt2"><div class=CFunction>Test whether or not a URL is external. </div></div><div class=CToolTip id="tt3"><div class=CFunction>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.</div></div><div class=CToolTip id="tt4"><div class=CFunction>Test whether or not a URL is internal. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt4"><div class=CFunction>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by jQuery.isUrlExternal). </div></div><div class=CToolTip id="tt5"><div class=CFunction>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by jQuery.isUrlInternal). </div></div><div class=CToolTip id="tt6"><div class=CFunction>Constructs the regular expression that matches an absolute-but-internal URL from the current page&rsquo;s protocol, hostname and port, allowing for any number of optional hostnames. </div></div><div class=CToolTip id="tt7"><div class=CFunction>Set or get the regular expression that matches an absolute-but-internal URL.</div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt5"><div class=CFunction>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by jQuery.isUrlExternal). </div></div><div class=CToolTip id="tt6"><div class=CFunction>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by jQuery.isUrlFragment). </div></div><div class=CToolTip id="tt7"><div class=CFunction>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by jQuery.isUrlInternal). </div></div><div class=CToolTip id="tt8"><div class=CFunction>Constructs the regular expression that matches an absolute-but-internal URL from the current page&rsquo;s protocol, hostname and port, allowing for any number of optional hostnames. </div></div><div class=CToolTip id="tt9"><div class=CFunction>Set or get the regular expression that matches an absolute-but-internal URL.</div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
-<div id=Menu><div class=MEntry><div class=MFile><a href="../files/jquery-ba-urlinternal-js.html">jQuery urlInternal: Easily test URL internal- or external-ness</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Functions</div></div><div class=MEntry><div class=MIndex><a href="Selectors.html">Selectors</a></div></div></div></div></div><script type="text/javascript"><!--
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/jquery-ba-urlinternal-js.html">jQuery urlInternal: Easily test URL internal-, external or fragment-ness</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Functions</div></div><div class=MEntry><div class=MIndex><a href="Selectors.html">Selectors</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Selectors">Selectors</option></select></div></div><!--Menu-->
Oops, something went wrong.

0 comments on commit 4d661aa

Please sign in to comment.