Browse files

1.0 release

  • Loading branch information...
1 parent 3590b5e commit 480a917bc20a5f4c1e811a2d6f0e2b6ccb61a0bb @cowboy committed Oct 8, 2009
View
4 README.markdown
@@ -1,7 +1,7 @@
# jQuery urlInternal #
[http://benalman.com/projects/jquery-urlinternal-plugin/](http://benalman.com/projects/jquery-urlinternal-plugin/)
-Version: 1.0pre, Last updated: 10/7/2009
+Version: 1.0, Last updated: 10/7/2009
jQuery urlInternal allows you to easily test internal-, external-, or fragment-ness for any relative or absolute URL. Includes element filtering methods and pseudo-selectors.
@@ -35,7 +35,7 @@ Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
## Release History ##
-1.0pre - (10/7/2009) Pre-Initial release
+1.0 - (10/7/2009) Initial release
## License ##
View
8 docs/files/jquery-ba-urlinternal-js.html
@@ -11,15 +11,15 @@
-<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="jQuery_urlInternal:Easily_test_URL_internal-,external_or_fragment-ness"></a>jQuery urlInternal: Easily test URL internal-, external or fragment-ness</h1><div class=CBody><p><b>Version: 1.0pre, Last updated: 10/7/2009</b></p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Project Home</td><td class=CDLDescription><a href="http://benalman.com/projects/jquery-urlinternal-plugin/" class=LURL target=_top>http://benalman.com<wbr>/projects<wbr>/jquery-urlinternal-plugin<wbr>/</a></td></tr><tr><td class=CDLEntry>GitHub</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-urlinternal/" class=LURL target=_top>http://github.com/cowboy/jquery-urlinternal/</a></td></tr><tr><td class=CDLEntry>Source</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-urlinternal/raw/master/jquery.ba-urlinternal.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-urlinternal<wbr>/raw<wbr>/master<wbr>/jquery.ba-urlinternal.js</a></td></tr><tr><td class=CDLEntry>(Minified)</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-urlinternal/raw/master/jquery.ba-urlinternal.min.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-urlinternal<wbr>/raw<wbr>/master<wbr>/jquery.ba-urlinternal.min.js</a> (1.7kb)</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#jQuery_urlInternal:Easily_test_URL_internal-,external_or_fragment-ness" >jQuery urlInternal: Easily test URL internal-, external or fragment-ness</a></td><td class=SDescription><b>Version: 1.0pre, Last updated: 10/7/2009</b></td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#License" >License</a></td><td class=SDescription>Copyright &copy; 2009 &ldquo;Cowboy&rdquo; Ben Alman, Licensed under the MIT license. </td></tr><tr class="SGeneric"><td class=SEntry><a href="#Examples" >Examples</a></td><td class=SDescription>This working example, complete with fully commented code, illustrates a few ways in which this plugin can be used.</td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#Support_and_Testing" >Support and Testing</a></td><td class=SDescription>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).</td></tr><tr class="SGeneric"><td class=SEntry><a href="#Release_History" >Release History</a></td><td class=SDescription></td></tr><tr class="SSection"><td class=SEntry><a href="#Methods" >Methods</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.isUrlInternal" >jQuery.<wbr>isUrlInternal</a></td><td class=SDescription>Test whether or not a URL is internal. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.isUrlExternal" >jQuery.<wbr>isUrlExternal</a></td><td class=SDescription>Test whether or not a URL is external. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.isUrlFragment" >jQuery.<wbr>isUrlFragment</a></td><td class=SDescription>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.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.fn.urlInternal" >jQuery.<wbr>fn.<wbr>urlInternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by <a href="#jQuery.isUrlInternal" class=LFunction id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">jQuery.isUrlInternal</a>). </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.fn.urlExternal" >jQuery.<wbr>fn.<wbr>urlExternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>). </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.fn.urlFragment" >jQuery.<wbr>fn.<wbr>urlFragment</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>). </td></tr><tr class="SSection"><td class=SEntry><a href="#Selectors" >Selectors</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Selectors" >Selectors</a></td><td class=SDescription></td></tr><tr class="SSelector SIndent2 SMarked"><td class=SEntry><a href="#:urlInternal" >:urlInternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by <a href="#jQuery.isUrlInternal" class=LFunction id=link4 onMouseOver="ShowTip(event, 'tt1', 'link4')" onMouseOut="HideTip('tt1')">jQuery.isUrlInternal</a>). </td></tr><tr class="SSelector SIndent2"><td class=SEntry><a href="#:urlExternal" >:urlExternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link5 onMouseOver="ShowTip(event, 'tt2', 'link5')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>). </td></tr><tr class="SSelector SIndent2 SMarked"><td class=SEntry><a href="#:urlFragment" >:urlFragment</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link6 onMouseOver="ShowTip(event, 'tt3', 'link6')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>). </td></tr><tr class="SSection"><td class=SEntry><a href="#Support_methods" >Support methods</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.elemUrlAttr" >jQuery.<wbr>elemUrlAttr</a></td><td class=SDescription>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.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.urlInternalHost" >jQuery.<wbr>urlInternalHost</a></td><td class=SDescription>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. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.urlInternalRegExp" >jQuery.<wbr>urlInternalRegExp</a></td><td class=SDescription>Set or get the regular expression that matches an absolute-but-internal URL.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
+<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="jQuery_urlInternal:Easily_test_URL_internal-,external_or_fragment-ness"></a>jQuery urlInternal: Easily test URL internal-, external or fragment-ness</h1><div class=CBody><p><b>Version: 1.0, Last updated: 10/7/2009</b></p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Project Home</td><td class=CDLDescription><a href="http://benalman.com/projects/jquery-urlinternal-plugin/" class=LURL target=_top>http://benalman.com<wbr>/projects<wbr>/jquery-urlinternal-plugin<wbr>/</a></td></tr><tr><td class=CDLEntry>GitHub</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-urlinternal/" class=LURL target=_top>http://github.com/cowboy/jquery-urlinternal/</a></td></tr><tr><td class=CDLEntry>Source</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-urlinternal/raw/master/jquery.ba-urlinternal.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-urlinternal<wbr>/raw<wbr>/master<wbr>/jquery.ba-urlinternal.js</a></td></tr><tr><td class=CDLEntry>(Minified)</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-urlinternal/raw/master/jquery.ba-urlinternal.min.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-urlinternal<wbr>/raw<wbr>/master<wbr>/jquery.ba-urlinternal.min.js</a> (1.7kb)</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#jQuery_urlInternal:Easily_test_URL_internal-,external_or_fragment-ness" >jQuery urlInternal: Easily test URL internal-, external or fragment-ness</a></td><td class=SDescription><b>Version: 1.0, Last updated: 10/7/2009</b></td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#License" >License</a></td><td class=SDescription>Copyright &copy; 2009 &ldquo;Cowboy&rdquo; Ben Alman, Licensed under the MIT license. </td></tr><tr class="SGeneric"><td class=SEntry><a href="#Examples" >Examples</a></td><td class=SDescription>This working example, complete with fully commented code, illustrates a few ways in which this plugin can be used.</td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#Support_and_Testing" >Support and Testing</a></td><td class=SDescription>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).</td></tr><tr class="SGeneric"><td class=SEntry><a href="#Release_History" >Release History</a></td><td class=SDescription></td></tr><tr class="SSection"><td class=SEntry><a href="#Methods" >Methods</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.isUrlInternal" >jQuery.<wbr>isUrlInternal</a></td><td class=SDescription>Test whether or not a URL is internal. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.isUrlExternal" >jQuery.<wbr>isUrlExternal</a></td><td class=SDescription>Test whether or not a URL is external. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.isUrlFragment" >jQuery.<wbr>isUrlFragment</a></td><td class=SDescription>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.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.fn.urlInternal" >jQuery.<wbr>fn.<wbr>urlInternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by <a href="#jQuery.isUrlInternal" class=LFunction id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">jQuery.isUrlInternal</a>). </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.fn.urlExternal" >jQuery.<wbr>fn.<wbr>urlExternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>). </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.fn.urlFragment" >jQuery.<wbr>fn.<wbr>urlFragment</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>). </td></tr><tr class="SSection"><td class=SEntry><a href="#Selectors" >Selectors</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Selectors" >Selectors</a></td><td class=SDescription></td></tr><tr class="SSelector SIndent2 SMarked"><td class=SEntry><a href="#:urlInternal" >:urlInternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by <a href="#jQuery.isUrlInternal" class=LFunction id=link4 onMouseOver="ShowTip(event, 'tt1', 'link4')" onMouseOut="HideTip('tt1')">jQuery.isUrlInternal</a>). </td></tr><tr class="SSelector SIndent2"><td class=SEntry><a href="#:urlExternal" >:urlExternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link5 onMouseOver="ShowTip(event, 'tt2', 'link5')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>). </td></tr><tr class="SSelector SIndent2 SMarked"><td class=SEntry><a href="#:urlFragment" >:urlFragment</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link6 onMouseOver="ShowTip(event, 'tt3', 'link6')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>). </td></tr><tr class="SSection"><td class=SEntry><a href="#Support_methods" >Support methods</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.elemUrlAttr" >jQuery.<wbr>elemUrlAttr</a></td><td class=SDescription>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.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#jQuery.urlInternalHost" >jQuery.<wbr>urlInternalHost</a></td><td class=SDescription>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. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#jQuery.urlInternalRegExp" >jQuery.<wbr>urlInternalRegExp</a></td><td class=SDescription>Set or get the regular expression that matches an absolute-but-internal URL.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="License"></a>License</h3><div class=CBody><p>Copyright &copy; 2009 &ldquo;Cowboy&rdquo; Ben Alman, Licensed under the MIT license.&nbsp; <a href="http://benalman.com/about/license/" class=LURL target=_top>http://benalman.com/about/license/</a></p></div></div></div>
<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Examples"></a>Examples</h3><div class=CBody><p>This working example, complete with fully commented code, illustrates a few ways in which this plugin can be used.</p><p><a href="http://benalman.com/code/projects/jquery-urlinternal/examples/urlinternal/" class=LURL target=_top>http://benalman.com<wbr>/code<wbr>/projects<wbr>/jquery-urlinternal<wbr>/examples<wbr>/urlinternal<wbr>/</a></p></div></div></div>
<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Support_and_Testing"></a>Support and Testing</h3><div class=CBody><p>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).</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>jQuery Versions</td><td class=CDLDescription>1.3.2</td></tr><tr><td class=CDLEntry>Browsers Tested</td><td class=CDLDescription>Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.</td></tr><tr><td class=CDLEntry>Unit Tests</td><td class=CDLDescription><a href="http://benalman.com/code/projects/jquery-urlinternal/unit/" class=LURL target=_top>http://benalman.com<wbr>/code<wbr>/projects<wbr>/jquery-urlinternal<wbr>/unit<wbr>/</a></td></tr></table></div></div></div>
-<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Release_History"></a>Release History</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>1.0pre</td><td class=CDLDescription>(10/7/2009) Pre-Initial release</td></tr></table></div></div></div>
+<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Release_History"></a>Release History</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>1.0</td><td class=CDLDescription>(10/7/2009) Initial release</td></tr></table></div></div></div>
<div class="CSection"><div class=CTopic><h2 class=CTitle><a name="Methods"></a>Methods</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.isUrlInternal" >jQuery.<wbr>isUrlInternal</a></td><td class=SDescription>Test whether or not a URL is internal. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#jQuery.isUrlExternal" >jQuery.<wbr>isUrlExternal</a></td><td class=SDescription>Test whether or not a URL is external. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.isUrlFragment" >jQuery.<wbr>isUrlFragment</a></td><td class=SDescription>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.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#jQuery.fn.urlInternal" >jQuery.<wbr>fn.<wbr>urlInternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by <a href="#jQuery.isUrlInternal" class=LFunction id=link7 onMouseOver="ShowTip(event, 'tt1', 'link7')" onMouseOut="HideTip('tt1')">jQuery.isUrlInternal</a>). </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.fn.urlExternal" >jQuery.<wbr>fn.<wbr>urlExternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link8 onMouseOver="ShowTip(event, 'tt2', 'link8')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>). </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#jQuery.fn.urlFragment" >jQuery.<wbr>fn.<wbr>urlFragment</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link9 onMouseOver="ShowTip(event, 'tt3', 'link9')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>). </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
@@ -35,7 +35,7 @@
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="jQuery.fn.urlExternal"></a>jQuery.<wbr>fn.<wbr>urlExternal</h3><div class=CBody><p>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link12 onMouseOver="ShowTip(event, 'tt2', 'link12')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>).&nbsp; If URL cannot be determined, remove the element from the collection.</p><h4 class=CHeading>Usage</h4><blockquote><pre>jQuery('selector').urlExternal( [ attr ] );</pre></blockquote><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>attr</td><td class=CDLDescription>(String) Optional name of an attribute that will contain a URL to test external-ness against.&nbsp; See <a href="#jQuery.elemUrlAttr" class=LFunction id=link13 onMouseOver="ShowTip(event, 'tt4', 'link13')" onMouseOut="HideTip('tt4')">jQuery.elemUrlAttr</a> for a list of default attributes.</td></tr></table><h4 class=CHeading>Returns</h4><p>(jQuery) A filtered jQuery collection of elements.</p></div></div></div>
-<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="jQuery.fn.urlFragment"></a>jQuery.<wbr>fn.<wbr>urlFragment</h3><div class=CBody><p>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link14 onMouseOver="ShowTip(event, 'tt3', 'link14')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>).&nbsp; If URL cannot be determined, remove the element from the collection.</p><h4 class=CHeading>Usage</h4><blockquote><pre>jQuery('selector').urlFragment( [ attr ] );</pre></blockquote><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>attr</td><td class=CDLDescription>(String) Optional name of an attribute that will contain a URL to test external-ness against.&nbsp; See <a href="#jQuery.elemUrlAttr" class=LFunction id=link15 onMouseOver="ShowTip(event, 'tt4', 'link15')" onMouseOut="HideTip('tt4')">jQuery.elemUrlAttr</a> for a list of default attributes.</td></tr></table><h4 class=CHeading>Returns</h4><p>(jQuery) A filtered jQuery collection of elements.</p></div></div></div>
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="jQuery.fn.urlFragment"></a>jQuery.<wbr>fn.<wbr>urlFragment</h3><div class=CBody><p>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link14 onMouseOver="ShowTip(event, 'tt3', 'link14')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>).&nbsp; If URL cannot be determined, remove the element from the collection.</p><p>Note that in most browsers, selecting $(&ldquo;a[href^=#]&rdquo;) is reliable, but this doesn&rsquo;t always work in IE6/7!&nbsp; In order to properly test whether a URL attribute&rsquo;s value is a fragment in the context of the current page, you can either make your selector a bit more complicated.. or use .urlFragment!</p><h4 class=CHeading>Usage</h4><blockquote><pre>jQuery('selector').urlFragment( [ attr ] );</pre></blockquote><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>attr</td><td class=CDLDescription>(String) Optional name of an attribute that will contain a URL to test external-ness against.&nbsp; See <a href="#jQuery.elemUrlAttr" class=LFunction id=link15 onMouseOver="ShowTip(event, 'tt4', 'link15')" onMouseOut="HideTip('tt4')">jQuery.elemUrlAttr</a> for a list of default attributes.</td></tr></table><h4 class=CHeading>Returns</h4><p>(jQuery) A filtered jQuery collection of elements.</p></div></div></div>
<div class="CSection"><div class=CTopic><h2 class=CTitle><a name="Selectors"></a>Selectors</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Selectors" >Selectors</a></td><td class=SDescription></td></tr><tr class="SSelector SIndent1 SMarked"><td class=SEntry><a href="#:urlInternal" >:urlInternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an internal URL (as determined by <a href="#jQuery.isUrlInternal" class=LFunction id=link16 onMouseOver="ShowTip(event, 'tt1', 'link16')" onMouseOut="HideTip('tt1')">jQuery.isUrlInternal</a>). </td></tr><tr class="SSelector SIndent1"><td class=SEntry><a href="#:urlExternal" >:urlExternal</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link17 onMouseOver="ShowTip(event, 'tt2', 'link17')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>). </td></tr><tr class="SSelector SIndent1 SMarked"><td class=SEntry><a href="#:urlFragment" >:urlFragment</a></td><td class=SDescription>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link18 onMouseOver="ShowTip(event, 'tt3', 'link18')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>). </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
@@ -47,7 +47,7 @@
<div class="CSelector"><div class=CTopic><h3 class=CTitle><a name=":urlExternal"></a>:urlExternal</h3><div class=CBody><p>Filter a jQuery collection of elements, returning only elements that have an external URL (as determined by <a href="#jQuery.isUrlExternal" class=LFunction id=link21 onMouseOver="ShowTip(event, 'tt2', 'link21')" onMouseOut="HideTip('tt2')">jQuery.isUrlExternal</a>).&nbsp; If URL cannot be determined, remove the element from the collection.</p><h4 class=CHeading>Usage</h4><blockquote><pre>jQuery('selector').filter(':urlExternal');
jQuery('selector').filter(':urlExternal(attr)');</pre></blockquote><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>attr</td><td class=CDLDescription>(String) Optional name of an attribute that will contain a URL to test external-ness against.&nbsp; See <a href="#jQuery.elemUrlAttr" class=LFunction id=link22 onMouseOver="ShowTip(event, 'tt4', 'link22')" onMouseOut="HideTip('tt4')">jQuery.elemUrlAttr</a> for a list of default attributes.</td></tr></table><h4 class=CHeading>Returns</h4><p>(jQuery) A filtered jQuery collection of elements.</p></div></div></div>
-<div class="CSelector"><div class=CTopic><h3 class=CTitle><a name=":urlFragment"></a>:urlFragment</h3><div class=CBody><p>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link23 onMouseOver="ShowTip(event, 'tt3', 'link23')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>).&nbsp; If URL cannot be determined, remove the element from the collection.</p><h4 class=CHeading>Usage</h4><blockquote><pre>jQuery('selector').filter(':urlFragment');
+<div class="CSelector"><div class=CTopic><h3 class=CTitle><a name=":urlFragment"></a>:urlFragment</h3><div class=CBody><p>Filter a jQuery collection of elements, returning only elements that have an fragment URL (as determined by <a href="#jQuery.isUrlFragment" class=LFunction id=link23 onMouseOver="ShowTip(event, 'tt3', 'link23')" onMouseOut="HideTip('tt3')">jQuery.isUrlFragment</a>).&nbsp; If URL cannot be determined, remove the element from the collection.</p><p>Note that in most browsers, selecting $(&ldquo;a[href^=#]&rdquo;) is reliable, but this doesn&rsquo;t always work in IE6/7!&nbsp; In order to properly test whether a URL attribute&rsquo;s value is a fragment in the context of the current page, you can either make your selector a bit more complicated.. or use :urlFragment!</p><h4 class=CHeading>Usage</h4><blockquote><pre>jQuery('selector').filter(':urlFragment');
jQuery('selector').filter(':urlFragment(attr)');</pre></blockquote><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>attr</td><td class=CDLDescription>(String) Optional name of an attribute that will contain a URL to test fragment-ness against.&nbsp; See <a href="#jQuery.elemUrlAttr" class=LFunction id=link24 onMouseOver="ShowTip(event, 'tt4', 'link24')" onMouseOut="HideTip('tt4')">jQuery.elemUrlAttr</a> for a list of default attributes.</td></tr></table><h4 class=CHeading>Returns</h4><p>(jQuery) A filtered jQuery collection of elements.</p></div></div></div>
<div class="CSection"><div class=CTopic><h2 class=CTitle><a name="Support_methods"></a>Support methods</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.elemUrlAttr" >jQuery.<wbr>elemUrlAttr</a></td><td class=SDescription>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.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#jQuery.urlInternalHost" >jQuery.<wbr>urlInternalHost</a></td><td class=SDescription>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. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.urlInternalRegExp" >jQuery.<wbr>urlInternalRegExp</a></td><td class=SDescription>Set or get the regular expression that matches an absolute-but-internal URL.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
View
2 docs/index/Files.html
@@ -13,7 +13,7 @@
<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/7/2009</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.0, Last updated: 10/7/2009</b></div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
View
2 docs/index/General.html
@@ -29,7 +29,7 @@
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt9"><div class=CFile><b>Version: 1.0pre, Last updated: 10/7/2009</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt9"><div class=CFile><b>Version: 1.0, Last updated: 10/7/2009</b></div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
View
4 docs/nd/Data/FileInfo.nd
@@ -1,4 +1,4 @@
1.4
JavaScript
-/srv/projects/jquery-urlinternal/jquery.ba-urlinternal.js 1254966868 1 jQuery urlInternal: Easily test URL internal-, external or fragment-ness
-/srv/projects/jquery-urlinternal/jquery.ba-urlinternal.min.js 1254967087 0 /srv/projects/jquery-urlinternal/jquery.ba-urlinternal.min.js
+/srv/projects/jquery-urlinternal/jquery.ba-urlinternal.js 1254968356 1 jQuery urlInternal: Easily test URL internal-, external or fragment-ness
+/srv/projects/jquery-urlinternal/jquery.ba-urlinternal.min.js 1254968361 0 /srv/projects/jquery-urlinternal/jquery.ba-urlinternal.min.js
View
BIN docs/nd/Data/IndexInfo.nd
Binary file not shown.
View
BIN docs/nd/Data/SymbolTable.nd
Binary file not shown.
View
18 jquery.ba-urlinternal.js
@@ -1,5 +1,5 @@
/*!
- * urlInternal - v1.0pre - 10/7/2009
+ * urlInternal - v1.0 - 10/7/2009
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2009 "Cowboy" Ben Alman
@@ -9,7 +9,7 @@
// Script: jQuery urlInternal: Easily test URL internal-, external or fragment-ness
//
-// *Version: 1.0pre, Last updated: 10/7/2009*
+// *Version: 1.0, Last updated: 10/7/2009*
//
// Project Home - http://benalman.com/projects/jquery-urlinternal-plugin/
// GitHub - http://github.com/cowboy/jquery-urlinternal/
@@ -41,7 +41,7 @@
//
// About: Release History
//
-// 1.0pre - (10/7/2009) Pre-Initial release
+// 1.0 - (10/7/2009) Initial release
(function($){
'$:nomunge'; // Used by YUI compressor.
@@ -243,6 +243,11 @@
// an fragment URL (as determined by <jQuery.isUrlFragment>). If URL cannot
// be determined, remove the element from the collection.
//
+ // Note that in most browsers, selecting $("a[href^=#]") is reliable, but this
+ // doesn't always work in IE6/7! In order to properly test whether a URL
+ // attribute's value is a fragment in the context of the current page, you can
+ // either make your selector a bit more complicated.. or use .urlFragment!
+ //
// Usage:
//
// > jQuery('selector').urlFragment( [ attr ] );
@@ -315,6 +320,11 @@
// an fragment URL (as determined by <jQuery.isUrlFragment>). If URL cannot
// be determined, remove the element from the collection.
//
+ // Note that in most browsers, selecting $("a[href^=#]") is reliable, but this
+ // doesn't always work in IE6/7! In order to properly test whether a URL
+ // attribute's value is a fragment in the context of the current page, you can
+ // either make your selector a bit more complicated.. or use :urlFragment!
+ //
// Usage:
//
// > jQuery('selector').filter(':urlFragment');
@@ -477,4 +487,4 @@
// Initialize url_regexp with a reasonable default.
jq_urlInternalHost( 'www' );
-})(jQuery);
+})(jQuery);
View
2 jquery.ba-urlinternal.min.js
@@ -1,5 +1,5 @@
/*
- * urlInternal - v1.0pre - 10/7/2009
+ * urlInternal - v1.0 - 10/7/2009
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2009 "Cowboy" Ben Alman

0 comments on commit 480a917

Please sign in to comment.