<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery URL Parser v1.0</title>
	<atom:link href="http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/feed/" rel="self" type="application/rss+xml" />
	<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 10 Jun 2010 15:58:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jan-Wijbrand</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-495</link>
		<dc:creator>Jan-Wijbrand</dc:creator>
		<pubDate>Thu, 11 Mar 2010 10:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-495</guid>
		<description>Hi, 

Thanks for making this plugin available. Very useful.

Question: What is the canonical way for parsing URLs in &quot;strict&quot; mode? It must something obvious, but I cannot find it...

I tried: $.url.setMode(&quot;strict&quot;) but still the URLs are parsed &quot;loosely&quot;. In the end I just copied the &quot;strict regex&quot; into the &quot;loose regex&quot; to get strict parsing, but well, that&#039;s an ugly ugly hack of course.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Thanks for making this plugin available. Very useful.</p>
<p>Question: What is the canonical way for parsing URLs in &#8220;strict&#8221; mode? It must something obvious, but I cannot find it&#8230;</p>
<p>I tried: $.url.setMode(&#8220;strict&#8221;) but still the URLs are parsed &#8220;loosely&#8221;. In the end I just copied the &#8220;strict regex&#8221; into the &#8220;loose regex&#8221; to get strict parsing, but well, that&#8217;s an ugly ugly hack of course.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-172</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 16 Oct 2009 07:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-172</guid>
		<description>Hi Murat,

Thanks for that - but have you seen my new &#039;beta&#039; version of the URL parser/setter plugin? http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/ It has methods of accessing querystring params and lots of other stuff, you might find it useful.

Still very beta though (and not much documentation at the moment I&#039;m afraid) so if you do try it and spot any bugs then please let me know.</description>
		<content:encoded><![CDATA[<p>Hi Murat,</p>
<p>Thanks for that &#8211; but have you seen my new &#8216;beta&#8217; version of the URL parser/setter plugin? <a href="http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/" rel="nofollow">http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/</a> It has methods of accessing querystring params and lots of other stuff, you might find it useful.</p>
<p>Still very beta though (and not much documentation at the moment I&#8217;m afraid) so if you do try it and spot any bugs then please let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murat Çorlu</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-170</link>
		<dc:creator>Murat Çorlu</dc:creator>
		<pubDate>Wed, 14 Oct 2009 09:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-170</guid>
		<description>Good work Mark! Thank you for share!

I needed a `params` method to get all querystring methods by hash data and I wrote a patch for this:

jQuery.extend(jQuery.url, {
	params: function(){
		var paramsArray = this.attr(&#039;query&#039;) ? this.attr(&#039;query&#039;).split(&#039;&amp;&#039;) : [];
		var params = {};
		for(param in paramsArray) {
			var prm = paramsArray[param].split(&#039;=&#039;);
			params[prm[0]] = prm[1];
		}
		return params;
	}
});

For example;
jQuery.url.setUrl(&#039;http://example.com/?brand=12&amp;model=25&#039;).params()

returns (object):
{brand:12, model:25}

Maybe someone need this too...</description>
		<content:encoded><![CDATA[<p>Good work Mark! Thank you for share!</p>
<p>I needed a `params` method to get all querystring methods by hash data and I wrote a patch for this:</p>
<p>jQuery.extend(jQuery.url, {<br />
	params: function(){<br />
		var paramsArray = this.attr(&#8216;query&#8217;) ? this.attr(&#8216;query&#8217;).split(&#8216;&amp;&#8217;) : [];<br />
		var params = {};<br />
		for(param in paramsArray) {<br />
			var prm = paramsArray[param].split(&#8216;=&#8217;);<br />
			params[prm[0]] = prm[1];<br />
		}<br />
		return params;<br />
	}<br />
});</p>
<p>For example;<br />
jQuery.url.setUrl(&#8216;http://example.com/?brand=12&amp;model=25&#8242;).params()</p>
<p>returns (object):<br />
{brand:12, model:25}</p>
<p>Maybe someone need this too&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-17</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 27 Jul 2009 01:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-17</guid>
		<description>@akahn -- looks to me that the best way to do this is with http://plugins.jquery.com/project/query-object

Frankly, all the jQuery plugins that deal with this fall short in this regard.  The main features I feel are missing are:

(since the url params are essentially a hash, we should be able to get an array of keys and values easily)
param.keys
param.values
These methods should also SET the keys/values if you supply them with a (shallow) array

And for this particular one, I think the attr and param methods should also be used for SETTING values, as is the standard for many core jQuery methods:

jQuery.url.attr(&quot;host&quot;,&quot;google.com&quot;);   // would redirect to google
jQuery.url.param(&quot;myParam&quot;,&quot;foobar&quot;);    // would set &quot;myParam=foobar&quot; in the parameter string

Maybe I&#039;ll take an hour or two and enhance one of these plugins to do this properly.

Cheers.

-Steve</description>
		<content:encoded><![CDATA[<p>@akahn &#8212; looks to me that the best way to do this is with <a href="http://plugins.jquery.com/project/query-object" rel="nofollow">http://plugins.jquery.com/project/query-object</a></p>
<p>Frankly, all the jQuery plugins that deal with this fall short in this regard.  The main features I feel are missing are:</p>
<p>(since the url params are essentially a hash, we should be able to get an array of keys and values easily)<br />
param.keys<br />
param.values<br />
These methods should also SET the keys/values if you supply them with a (shallow) array</p>
<p>And for this particular one, I think the attr and param methods should also be used for SETTING values, as is the standard for many core jQuery methods:</p>
<p>jQuery.url.attr(&#8220;host&#8221;,&#8221;google.com&#8221;);   // would redirect to google<br />
jQuery.url.param(&#8220;myParam&#8221;,&#8221;foobar&#8221;);    // would set &#8220;myParam=foobar&#8221; in the parameter string</p>
<p>Maybe I&#8217;ll take an hour or two and enhance one of these plugins to do this properly.</p>
<p>Cheers.</p>
<p>-Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akahn</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-14</link>
		<dc:creator>akahn</dc:creator>
		<pubDate>Thu, 04 Jun 2009 17:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-14</guid>
		<description>It seems that this plugin is only for accessing information from the URL. Is there a way to set, for example, the anchor string, using this plugin? If that&#039;s not possible, what&#039;s a good way to do that?</description>
		<content:encoded><![CDATA[<p>It seems that this plugin is only for accessing information from the URL. Is there a way to set, for example, the anchor string, using this plugin? If that&#8217;s not possible, what&#8217;s a good way to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katie</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-15</link>
		<dc:creator>Katie</dc:creator>
		<pubDate>Thu, 28 May 2009 14:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-15</guid>
		<description>Hi there,

This url parser is great!  Thanks Mark :o)  But I have recently started using it on the same page as ui tabs (see http://stilbuero.de/jquery/tabs_3/) .  On pages with tabs, I get the following javascript error jQuery.url is null or not an object.  Do you know why this might be?  Is there a way for me to fix this so that the two plugins don&#039;t interfere with each other?

Let me know if you need more info!  (I&#039;m afraid I can&#039;t send you a link to the problem because it&#039;s an intranet).

Many thanks,

Katie</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>This url parser is great!  Thanks Mark :o)  But I have recently started using it on the same page as ui tabs (see <a href="http://stilbuero.de/jquery/tabs_3/)" rel="nofollow">http://stilbuero.de/jquery/tabs_3/)</a> .  On pages with tabs, I get the following javascript error jQuery.url is null or not an object.  Do you know why this might be?  Is there a way for me to fix this so that the two plugins don&#8217;t interfere with each other?</p>
<p>Let me know if you need more info!  (I&#8217;m afraid I can&#8217;t send you a link to the problem because it&#8217;s an intranet).</p>
<p>Many thanks,</p>
<p>Katie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: no link</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-16</link>
		<dc:creator>no link</dc:creator>
		<pubDate>Sun, 26 Apr 2009 17:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-16</guid>
		<description>no link!</description>
		<content:encoded><![CDATA[<p>no link!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-11</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 13 Nov 2008 20:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-11</guid>
		<description>@Mark Drew - You can use any url string by chaining in the setUrl() method, so if you wanted to parse the url &quot;http://mysite.com/different_url.php?test=4&quot; to get the value of &#039;test&#039; from the query string you would do:

jQuery.url.setUrl(&quot;http://mysite.com/different_url.php?test=4&quot;).param(&quot;test&quot;)

I hope that makes sense! Let me know if anything is not clear.</description>
		<content:encoded><![CDATA[<p>@Mark Drew &#8211; You can use any url string by chaining in the setUrl() method, so if you wanted to parse the url &#8220;http://mysite.com/different_url.php?test=4&#8243; to get the value of &#8216;test&#8217; from the query string you would do:</p>
<p>jQuery.url.setUrl(&#8220;http://mysite.com/different_url.php?test=4&#8243;).param(&#8220;test&#8221;)</p>
<p>I hope that makes sense! Let me know if anything is not clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Drew</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-10</link>
		<dc:creator>Mark Drew</dc:creator>
		<pubDate>Thu, 13 Nov 2008 17:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-10</guid>
		<description>Just curious here, but can I pass &quot;ANY&quot; url string and parse that? how would you do that? I can&#039;t see it in the docs (rather than just passing the current url) ?</description>
		<content:encoded><![CDATA[<p>Just curious here, but can I pass &#8220;ANY&#8221; url string and parse that? how would you do that? I can&#8217;t see it in the docs (rather than just passing the current url) ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: josh</title>
		<link>http://allmarkedup.com/journal/2008/08/jquery-url-parser-v10/comment-page-1/#comment-13</link>
		<dc:creator>josh</dc:creator>
		<pubDate>Wed, 12 Nov 2008 05:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/?p=85#comment-13</guid>
		<description>thanks for the feedback. I am not sure I follow you with the PHP suggestion. I am not as familiar. If you have any suggestions where to find more about what you mentioned please let me know.</description>
		<content:encoded><![CDATA[<p>thanks for the feedback. I am not sure I follow you with the PHP suggestion. I am not as familiar. If you have any suggestions where to find more about what you mentioned please let me know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
