<?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: jQTouch HTML5 database api extension</title>
	<atom:link href="http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/</link>
	<description>Get your web worker news fix</description>
	<lastBuildDate>Fri, 10 Feb 2012 21:12:55 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: zucky</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-17449</link>
		<dc:creator>zucky</dc:creator>
		<pubDate>Mon, 25 Apr 2011 05:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-17449</guid>
		<description>Someone please complete this extension with transactions and all?? Immensely useful if its stable and optimized...</description>
		<content:encoded><![CDATA[<p>Someone please complete this extension with transactions and all?? Immensely useful if its stable and optimized&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My Bookmarks &#171; Ruman&#39;s Blog</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-16462</link>
		<dc:creator>My Bookmarks &#171; Ruman&#39;s Blog</dc:creator>
		<pubDate>Tue, 29 Mar 2011 07:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-16462</guid>
		<description>[...] Position Absolute, web apps and front-end stuff &#8211; jQTouch HTML5 database api extension « [...]</description>
		<content:encoded><![CDATA[<p>[...] Position Absolute, web apps and front-end stuff &#8211; jQTouch HTML5 database api extension « [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony O</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-15692</link>
		<dc:creator>Tony O</dc:creator>
		<pubDate>Tue, 01 Mar 2011 21:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-15692</guid>
		<description>Forgot to add: put that function in the extension below the dbInsertRows function</description>
		<content:encoded><![CDATA[<p>Forgot to add: put that function in the extension below the dbInsertRows function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony O</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-15691</link>
		<dc:creator>Tony O</dc:creator>
		<pubDate>Tue, 01 Mar 2011 21:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-15691</guid>
		<description>The missing &#039;update&#039; function.  Syntax is the same JSON as the dbInsertRows function and sqlWHERE is a raw SQL where (because I&#039;m lazy and understand SQL).

Usage:
dbUpdateRows( &quot;updateRow&quot;:[{&quot;table&quot;:&quot;test&quot;, &quot;property&quot;:[{&quot;name&quot;:&quot;testCol&quot;,&quot;value&quot;:&quot;testValue&quot;}]}]);

		function dbUpdateRows(tbJson, sqlWHERE){
            	for(x=0;x&lt;tbJson.updateRow.length;x++){ 		// loop in every row from JSON
            		createUQueryRow(tbJson.updateRow[x], sqlWHERE);
            	}
            	function createUQueryRow(tbNode, where){		// Create every row SQL
            		debugTxt = &quot;create row &quot; + tbNode.table;
            		
	         		stringQuery = &quot;UPDATE &quot; + tbNode.table + &quot; SET &quot;
	     			nodeSize = tbNode.property.length -1;
	        		for(y=0;y&lt;=nodeSize;y++){
	        			stringQuery += tbNode.property[y].name + &quot; = &#039;&quot; + tbNode.property[y].value + &quot;&#039;&quot;;
	        			if(y != nodeSize) {stringQuery +=&quot;, &quot;}
	        		}
	        		stringQuery += &quot; &quot; + where;
	           		dbExecuteQuery(stringQuery,debugTxt);
           		}		
		}</description>
		<content:encoded><![CDATA[<p>The missing &#8216;update&#8217; function.  Syntax is the same JSON as the dbInsertRows function and sqlWHERE is a raw SQL where (because I&#8217;m lazy and understand SQL).</p>
<p>Usage:<br />
dbUpdateRows( &#8220;updateRow&#8221;:[{"table":"test", "property":[{"name":"testCol","value":"testValue"}]}]);</p>
<p>		function dbUpdateRows(tbJson, sqlWHERE){<br />
            	for(x=0;x&lt;tbJson.updateRow.length;x++){ 		// loop in every row from JSON<br />
            		createUQueryRow(tbJson.updateRow[x], sqlWHERE);<br />
            	}<br />
            	function createUQueryRow(tbNode, where){		// Create every row SQL<br />
            		debugTxt = &quot;create row &quot; + tbNode.table;</p>
<p>	         		stringQuery = &quot;UPDATE &quot; + tbNode.table + &quot; SET &quot;<br />
	     			nodeSize = tbNode.property.length -1;<br />
	        		for(y=0;y&lt;=nodeSize;y++){<br />
	        			stringQuery += tbNode.property[y].name + &quot; = &#039;&quot; + tbNode.property[y].value + &quot;&#039;&quot;;<br />
	        			if(y != nodeSize) {stringQuery +=&quot;, &quot;}<br />
	        		}<br />
	        		stringQuery += &quot; &quot; + where;<br />
	           		dbExecuteQuery(stringQuery,debugTxt);<br />
           		}<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinod</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-15079</link>
		<dc:creator>Vinod</dc:creator>
		<pubDate>Sun, 13 Feb 2011 17:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-15079</guid>
		<description>I found this to be pretty useful, but did you have a chance to work any further on this? Just wondering if you missed out on the function to update records.</description>
		<content:encoded><![CDATA[<p>I found this to be pretty useful, but did you have a chance to work any further on this? Just wondering if you missed out on the function to update records.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel J. Pinter</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-11082</link>
		<dc:creator>Daniel J. Pinter</dc:creator>
		<pubDate>Sat, 27 Nov 2010 16:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-11082</guid>
		<description>I signed that, too. Then it went GitHub and I said, &quot;Fork &#039;em! I&#039;ll do it myself.&quot;
I&#039;d really like you to fork jQT &amp; put this extension in so I can fork your code and add a transaction as a wrapper for multiple api calls I asked about back on Jan 3 &#039;10.</description>
		<content:encoded><![CDATA[<p>I signed that, too. Then it went GitHub and I said, &#8220;Fork &#8216;em! I&#8217;ll do it myself.&#8221;<br />
I&#8217;d really like you to fork jQT &amp; put this extension in so I can fork your code and add a transaction as a wrapper for multiple api calls I asked about back on Jan 3 &#8216;10.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric Dugas</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-11060</link>
		<dc:creator>Cedric Dugas</dc:creator>
		<pubDate>Sat, 27 Nov 2010 02:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-11060</guid>
		<description>Well, I did this extension quite a while back ago, 

At that time, I signed a release form so it can be included with jQtouch, 
guess it was not good enough</description>
		<content:encoded><![CDATA[<p>Well, I did this extension quite a while back ago, </p>
<p>At that time, I signed a release form so it can be included with jQtouch,<br />
guess it was not good enough</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel J. Pinter</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-10816</link>
		<dc:creator>Daniel J. Pinter</dc:creator>
		<pubDate>Thu, 18 Nov 2010 21:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-10816</guid>
		<description>It&#039;s nice to see that your continuing to work on this extension. Have you considered forking jQT on GitHub and adding this extension?

https://github.com/senchalabs/jQTouch

That&#039;s what I did for my extensions.

https://github.com/DataZombies/jQTouch</description>
		<content:encoded><![CDATA[<p>It&#8217;s nice to see that your continuing to work on this extension. Have you considered forking jQT on GitHub and adding this extension?</p>
<p><a href="https://github.com/senchalabs/jQTouch" rel="nofollow">https://github.com/senchalabs/jQTouch</a></p>
<p>That&#8217;s what I did for my extensions.</p>
<p><a href="https://github.com/DataZombies/jQTouch" rel="nofollow">https://github.com/DataZombies/jQTouch</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rutwick</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-10772</link>
		<dc:creator>Rutwick</dc:creator>
		<pubDate>Wed, 17 Nov 2010 11:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-10772</guid>
		<description>Hi.. I have a question... Do I need to have a Mac for developing iPhone apps using jQTouch or it works on Windows machine?</description>
		<content:encoded><![CDATA[<p>Hi.. I have a question&#8230; Do I need to have a Mac for developing iPhone apps using jQTouch or it works on Windows machine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Knoll</title>
		<link>http://www.position-absolute.com/articles/jqtouch-html5-database-api-extension/comment-page-1/#comment-9972</link>
		<dc:creator>Alex Knoll</dc:creator>
		<pubDate>Mon, 25 Oct 2010 15:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.position-absolute.com/?p=2154#comment-9972</guid>
		<description>Have you thought about using this type of database API to tie into page requests? I.E. I&#039;ve been mulling over using an AJAX call to load hundreds of pages into the local sqlite db and to run page calls like this:

(I was using the process with jquery mobile, but a similar process could be used with jqtouch)
When a page is requested:
1. If the &#039;page&#039; is already loaded within the current mobile page structure, load from there,
2. Search the sqlite db to see if the page can be loaded from offline storage, load from there,
3. If it can&#039;t be loaded from there, use AJAX to do a page call.</description>
		<content:encoded><![CDATA[<p>Have you thought about using this type of database API to tie into page requests? I.E. I&#8217;ve been mulling over using an AJAX call to load hundreds of pages into the local sqlite db and to run page calls like this:</p>
<p>(I was using the process with jquery mobile, but a similar process could be used with jqtouch)<br />
When a page is requested:<br />
1. If the &#8216;page&#8217; is already loaded within the current mobile page structure, load from there,<br />
2. Search the sqlite db to see if the page can be loaded from offline storage, load from there,<br />
3. If it can&#8217;t be loaded from there, use AJAX to do a page call.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

