<?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 Toolbox *beta*</title>
	<atom:link href="http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/feed/" rel="self" type="application/rss+xml" />
	<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/</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: rich</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-505</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Thu, 13 May 2010 14:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-505</guid>
		<description>parser eat my tags, exaple again

[form method=&quot;post&quot; action=&quot;test.html?add-comment&quot;]

after 
_this.form.url().param(&#039;thread_id&#039;, &#039;1&#039;);

look like
[form method=&quot;post&quot; action=&quot;test.htmll?add-comment=undefined&amp;thread_id=1&quot;]</description>
		<content:encoded><![CDATA[<p>parser eat my tags, exaple again</p>
<p>[form method="post" action="test.html?add-comment"]</p>
<p>after<br />
_this.form.url().param(&#8216;thread_id&#8217;, &#8216;1&#8242;);</p>
<p>look like<br />
[form method="post" action="test.htmll?add-comment=undefined&amp;thread_id=1"]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rich</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-504</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Thu, 13 May 2010 14:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-504</guid>
		<description>Thank you, this script can do in one string that would be 20 without!

One little thing
When setting search string param to element with existing empty param value it changes it to undefined
Example



after 
_this.form.url().param(&#039;thread_id&#039;, &#039;1&#039;);

look like
</description>
		<content:encoded><![CDATA[<p>Thank you, this script can do in one string that would be 20 without!</p>
<p>One little thing<br />
When setting search string param to element with existing empty param value it changes it to undefined<br />
Example</p>
<p>after<br />
_this.form.url().param(&#8216;thread_id&#8217;, &#8216;1&#8242;);</p>
<p>look like</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-500</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 22 Mar 2010 21:50:07 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-500</guid>
		<description>Thanks very much for the input Daniel - I will take a look at the patch and incorporate it into a release as soon as possible.</description>
		<content:encoded><![CDATA[<p>Thanks very much for the input Daniel &#8211; I will take a look at the patch and incorporate it into a release as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-499</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 18 Mar 2010 12:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-499</guid>
		<description>F...k

I think that my patch was damaged by comments engine</description>
		<content:encoded><![CDATA[<p>F&#8230;k</p>
<p>I think that my patch was damaged by comments engine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-498</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 18 Mar 2010 12:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-498</guid>
		<description>this patch which replaces splitQuery function fixes problem with decoding parameters

	function hexValue( charCode )
	{
		if (charCode &gt;= 48 &amp;&amp; charCode = 65 &amp;&amp; charCode = 97 &amp;&amp; charCode &lt; 103)
		  return 10 + charCode - 97;
		else
		  return NaN;
	}
	
	function decode( string )
	{
		string = string.replace(/\+/, &#039; &#039;);
		return string.replace(/\%([0-9a-fA-F][0-9a-fA-F])/, function(str, p, offset, s)
		{
		  var code = hexValue(p.charCodeAt(0))*16 + hexValue(p.charCodeAt(1));
		  return String.fromCharCode(code);
		});
	}
	
	// split up a query sting
	function splitQuery( string )
	{
		var ret = {},
		seg = string.replace(/^\?/,&#039;&#039;).split(&#039;&amp;&#039;),
		len = seg.length, i = 0, s;
		for (;i&lt;len;i++)
		{
			if (!seg[i]) { continue; }
			s = seg[i].split(&#039;=&#039;);
			ret[decode(s[0])] = decode(s[1]);
		}
		return ret;
	}</description>
		<content:encoded><![CDATA[<p>this patch which replaces splitQuery function fixes problem with decoding parameters</p>
<p>	function hexValue( charCode )<br />
	{<br />
		if (charCode &gt;= 48 &amp;&amp; charCode = 65 &amp;&amp; charCode = 97 &amp;&amp; charCode &lt; 103)<br />
		  return 10 + charCode &#8211; 97;<br />
		else<br />
		  return NaN;<br />
	}</p>
<p>	function decode( string )<br />
	{<br />
		string = string.replace(/\+/, &#039; &#039;);<br />
		return string.replace(/\%([0-9a-fA-F][0-9a-fA-F])/, function(str, p, offset, s)<br />
		{<br />
		  var code = hexValue(p.charCodeAt(0))*16 + hexValue(p.charCodeAt(1));<br />
		  return String.fromCharCode(code);<br />
		});<br />
	}</p>
<p>	// split up a query sting<br />
	function splitQuery( string )<br />
	{<br />
		var ret = {},<br />
		seg = string.replace(/^\?/,&#039;&#039;).split(&#039;&amp;&#039;),<br />
		len = seg.length, i = 0, s;<br />
		for (;i&lt;len;i++)<br />
		{<br />
			if (!seg[i]) { continue; }<br />
			s = seg[i].split(&#039;=&#039;);<br />
			ret[decode(s[0])] = decode(s[1]);<br />
		}<br />
		return ret;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-497</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 18 Mar 2010 11:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-497</guid>
		<description>I&#039;ve noticed that (probably) names and values of params are not decoded (syntax %xy and &#039;+&#039; sign) - for example:

?param%3Aname=my%20value+space

should be decoded to name: &#039;param:name&#039; and value: &#039;my value space&#039;

 but it&#039;s left as it was: &#039;param%3Aname&#039; and &#039;my%20value+space&#039;

Best Regards
Daniel</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that (probably) names and values of params are not decoded (syntax %xy and &#8216;+&#8217; sign) &#8211; for example:</p>
<p>?param%3Aname=my%20value+space</p>
<p>should be decoded to name: &#8216;param:name&#8217; and value: &#8216;my value space&#8217;</p>
<p> but it&#8217;s left as it was: &#8216;param%3Aname&#8217; and &#8216;my%20value+space&#8217;</p>
<p>Best Regards<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-496</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 18 Mar 2010 11:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-496</guid>
		<description>Hi

Nice plugin. But how to iterate through params - is it possible?

Regards
Daniel</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Nice plugin. But how to iterate through params &#8211; is it possible?</p>
<p>Regards<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-494</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-494</guid>
		<description>Hi
Does this plugin allow for finding an href value with regex and replacing it?

What I&#039;m trying to do is find every instance of a text link with &#039;helpfiles.php&#039; in it using a regex:
href=&quot;http://www.site.com/helpfiles.php?sp_=909&quot;&gt;wibble

and replace it with this:
href=&quot;#&quot; onclick=&quot;innerLayout.toggle(&#039;inner-south&#039;)&quot;&gt;wibble

I&#039;ve created the regex, but have come unstuck on the replace.
I can do a replace easily if it is just text, but as soon as it&#039;s a link it doesn&#039;t work.

Maybe this plugin will do it.

Simon
(my js is very ordinary and I must admit the quick pointers above left me lost.)</description>
		<content:encoded><![CDATA[<p>Hi<br />
Does this plugin allow for finding an href value with regex and replacing it?</p>
<p>What I&#8217;m trying to do is find every instance of a text link with &#8216;helpfiles.php&#8217; in it using a regex:<br />
href=&#8221;http://www.site.com/helpfiles.php?sp_=909&#8243;&gt;wibble</p>
<p>and replace it with this:<br />
href=&#8221;#&#8221; onclick=&#8221;innerLayout.toggle(&#8216;inner-south&#8217;)&#8221;&gt;wibble</p>
<p>I&#8217;ve created the regex, but have come unstuck on the replace.<br />
I can do a replace easily if it is just text, but as soon as it&#8217;s a link it doesn&#8217;t work.</p>
<p>Maybe this plugin will do it.</p>
<p>Simon<br />
(my js is very ordinary and I must admit the quick pointers above left me lost.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-342</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Tue, 26 Jan 2010 19:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-342</guid>
		<description>Mark, I&#039;m using this script in Titanium.app which is like adobe AIR, and runs a version of  webkit. It works perfect the first time it&#039;s called, but after a jQuery ajax call it returns an error:

TypeError: Result of expression &#039;$.url&#039; [undefined] is not a function.

It&#039;s probaby something I&#039;m doing wrong, but when I instead do some string manipulation on the url I was passing to $.url everything is peachy. 

I&#039;ll keep trying to track down what&#039;s happening in the app, but I&#039;m wondering, could this be some type of namespace error?</description>
		<content:encoded><![CDATA[<p>Mark, I&#8217;m using this script in Titanium.app which is like adobe AIR, and runs a version of  webkit. It works perfect the first time it&#8217;s called, but after a jQuery ajax call it returns an error:</p>
<p>TypeError: Result of expression &#8216;$.url&#8217; [undefined] is not a function.</p>
<p>It&#8217;s probaby something I&#8217;m doing wrong, but when I instead do some string manipulation on the url I was passing to $.url everything is peachy. </p>
<p>I&#8217;ll keep trying to track down what&#8217;s happening in the app, but I&#8217;m wondering, could this be some type of namespace error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason C</title>
		<link>http://allmarkedup.com/journal/2009/10/jquery-url-toolbox-beta/comment-page-1/#comment-254</link>
		<dc:creator>Jason C</dc:creator>
		<pubDate>Fri, 22 Jan 2010 21:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://allmarkedup.com/journal/?p=330#comment-254</guid>
		<description>It might be nice to have a removeParam function.

Here is a really rough implementation:

function removeParam(key) {
    re = new RegExp(&quot;(&quot;+key+&quot;=.*?)(?:&amp;&#124;$)&quot;);
    newUrl = url.toString().replace(re, &#039;&#039;).replace(/[\?&amp;]$/, &#039;&#039;);
    document.location = newUrl;
}</description>
		<content:encoded><![CDATA[<p>It might be nice to have a removeParam function.</p>
<p>Here is a really rough implementation:</p>
<p>function removeParam(key) {<br />
    re = new RegExp(&#8220;(&#8220;+key+&#8221;=.*?)(?:&amp;|$)&#8221;);<br />
    newUrl = url.toString().replace(re, &#8221;).replace(/[\?&amp;]$/, &#8221;);<br />
    document.location = newUrl;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
