<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6099765729490662381</id><updated>2024-08-29T11:15:23.077+09:00</updated><category term="jsonengine"/><category term="jquery"/><category term="extjs"/><category term="memo"/><title type='text'>uchima.blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tsutomuuchima.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tsutomuuchima.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6099765729490662381.post-2660778766609249480</id><published>2011-02-26T20:28:00.002+09:00</published><updated>2011-02-27T06:43:14.306+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="jsonengine"/><title type='text'>jquery.jsonengine.js _LOAD()</title><content type='html'>&lt;script src=&quot;http://jsdo.it/blogparts/sLbx/js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;div class=&quot;ttlBpJsdoit&quot; style=&quot;font-size: 11px; margin: 0; text-align: right; width: 465px;&quot;&gt;&lt;a href=&quot;http://jsdo.it/tsutomu/sLbx&quot; title=&quot;jquery.jsonengine.js _LOAD()&quot;&gt;jquery.jsonengine.js _LOAD() - jsdo.it - share JavaScript, HTML5 and CSS&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
前の&lt;a href=&quot;http://tsutomuuchima.blogspot.com/2011/02/jqueryjsonenginejs.html&quot;&gt;エントリ&lt;/a&gt;で書いたヤツjquery.jsonengine.js _LOAD()を書いてみた。ネストしたjsonにはまだ未対応だけど。&lt;br /&gt;
&lt;br /&gt;
ぜひ&lt;a href=&quot;http://jsdo.it/tsutomu/sLbx&quot; target=&quot;_blank&quot;&gt;jsdo.it&lt;/a&gt;でフォークしてhtmlやcssの定義のみでデータ表示出来る様子を疑似体験してください。&lt;br /&gt;
&lt;br /&gt;
追記：&lt;a href=&quot;http://satomacoto.blogspot.com/2010/02/jsonhtml.html&quot; target=&quot;_blank&quot;&gt;こちら&lt;/a&gt;を参考にネストしたjsonにも対応しました。</content><link rel='replies' type='application/atom+xml' href='http://tsutomuuchima.blogspot.com/feeds/2660778766609249480/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jqueryjsonenginejs-load.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/2660778766609249480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/2660778766609249480'/><link rel='alternate' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jqueryjsonenginejs-load.html' title='jquery.jsonengine.js _LOAD()'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6099765729490662381.post-6361222351101674155</id><published>2011-02-26T09:28:00.016+09:00</published><updated>2011-03-01T00:26:08.428+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="jsonengine"/><title type='text'>jquery.jsonengine.js メモ</title><content type='html'>&lt;pre class=&quot;brush: xml&quot;&gt;&amp;lt;div class=&quot;_je_message&quot;&amp;gt;
&amp;lt;span class=&quot;query&quot;&amp;gt;&amp;amp;sort=_createdAt.desc&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: js&quot;&gt;$._GET   (option, success, error);
$._POST  (option, success, error);
$._PUT   (option, success, error);
$._DELETE(option, success, error);

$(&#39;._je_messages&#39;)._LOAD();

$(&#39;._je_messages&#39;)._GET   ($(&#39;._je_messages_form&#39;), success, error);
$(&#39;._je_messages&#39;)._POST  ($(&#39;._je_messages_form&#39;), success, error);
$(&#39;._je_messages&#39;)._PUT   ($(&#39;._je_messages_form&#39;), success, error);
$(&#39;._je_messages&#39;)._DELETE($(&#39;._je_messages_form&#39;), success, error);

$(&#39;._je_messages&#39;)._GET   ($(&#39;._je_messages_search&#39;), success, error);

$(&#39;._je_messages_listform&#39;);
$(&#39;._je_messages&#39;)._POST($(&#39;._je_messages_jsonform&#39;), success, error);

&lt;/pre&gt;&lt;br /&gt;
多分この形に落ち着くと思う。&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
命名規則はhtmlタグのクラス名で。&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;div class=&quot;_je_xxx&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
クラス名の先頭に”_je_”と付いているエレメントがjqueryプラグイン用。”xxx”はjsonengineのdocType名を表す。&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&lt;s&gt;&amp;lt;span class=&quot;_je_query&quot;/&amp;gt;&lt;/s&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;span class=&quot;query&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
クラス名”&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; white-space: pre;&quot;&gt;_je_message&lt;/span&gt;”の配下にあるクラス名”query”はjsonengineに対して_LOAD()が実行される場合に渡されるクエリ文字列を示す。つまり$(&#39;._je_messages&#39;)._LOAD();の実行はhtmlに記載された情報を元にされる。_LOAD()が実行されるとレスポンスが&amp;lt;div/&amp;gt;タグ内に表示される。どの様な表示形式にするかはまだ未定。単純なhtmlドキュメントが挿入されてユーザーのスタイルシートで自由に表現出来るようにしたい。あとダブルクリックでリロードするとか、&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;_je_xxx_form&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
末尾に_formが付いている要素はdocTypeのデータを入力するフォームエレメントを表す。&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cccccc;&quot;&gt;_je_xxx_search&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
末尾に_searchが付いている要素は検索式を入力するフォームエレメントを表す。&lt;br /&gt;
&lt;br /&gt;
以上が近々実装出来る機能。&lt;br /&gt;
&lt;br /&gt;
_je_xxx_listformと_je_xxx_jsonformは将来的に実装したい物。listformはGoogle taskみたいなリスト形式のデータが扱えるやつ。jsonformはオブジェクトリテラル形式のデータ入力を支援するフォーム。これらの機能はウィジェット的な形式で提供する事になると思う。</content><link rel='replies' type='application/atom+xml' href='http://tsutomuuchima.blogspot.com/feeds/6361222351101674155/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jqueryjsonenginejs.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/6361222351101674155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/6361222351101674155'/><link rel='alternate' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jqueryjsonenginejs.html' title='jquery.jsonengine.js メモ'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6099765729490662381.post-3433835530152803236</id><published>2011-02-25T20:25:00.008+09:00</published><updated>2011-02-26T09:29:41.919+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="jsonengine"/><title type='text'>jsonengine用のアプリを簡単に書けるようなjQueryプラグイン書いた</title><content type='html'>アプリのJavaScriptはこんな感じで書けるようにしてみた。 &lt;br /&gt;
&lt;pre class=&quot;brush: js&quot;&gt;$(function() {

$(&#39;#_POST&#39;).click(function(){
  $(&#39;#myDoc-list&#39;)._POST($(&#39;#myDoc&#39;));
});

$(&#39;#_GET&#39;).click(function(){
  $(&#39;#myDoc-list&#39;)._GET($(&#39;#myDoc&#39;));
});

$(&#39;#_PUT&#39;).click(function(){
  $(&#39;#myDoc-list&#39;)._PUT($(&#39;#myDoc&#39;));
});

$(&#39;#_DELETE&#39;).click(function(){
  $(&#39;#myDoc-list&#39;)._DELETE($(&#39;#myDoc&#39;));
});

$(&#39;#_SEARCH&#39;).click(function(){
  $(&#39;#myDoc-list&#39;)._GET($(&#39;#myDoc-search&#39;));
});

$(&#39;#_SEARCH&#39;).click();

});
&lt;/pre&gt;&lt;br /&gt;
実際のデモはここ。 &lt;a href=&quot;http://uchjava.appspot.com/samples/jquery/jquery.jsonengine.js/example.html&quot; target=&quot;_blank&quot;&gt;http://uchjava.appspot.com/samples/jquery/jquery.jsonengine.js/example.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
リストの項目をクリックしたら編集出来る。&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
htmlはこんな感じ。 &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&gt;&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Sample by jquery.jsonengine.js&amp;lt;/h1&amp;gt;
&amp;lt;!-- 
&amp;lt;form id=&quot;myDoc&quot; class=&quot;_jeClearForm&quot; action=&quot;/_je/myDoc&quot;&amp;gt;
 --&amp;gt;
&amp;lt;form id=&quot;myDoc&quot;&amp;gt;
&amp;lt;input type=&quot;text&quot; name=&quot;msgTxt&quot; value=&quot;&quot;/&amp;gt;&amp;lt;label&amp;gt;msgTxt&amp;lt;/label&amp;gt;&amp;lt;br/&amp;gt;
&amp;lt;input type=&quot;text&quot; name=&quot;_docId&quot; value=&quot;&quot;/&amp;gt;&amp;lt;label&amp;gt;_docId&amp;lt;/label&amp;gt;&amp;lt;br/&amp;gt;
&amp;lt;input type=&quot;text&quot; name=&quot;_createdAt&quot; value=&quot;&quot;/&amp;gt;&amp;lt;label&amp;gt;_createdAt&amp;lt;/label&amp;gt;&amp;lt;br/&amp;gt;
&amp;lt;input type=&quot;text&quot; name=&quot;_updatedAt&quot; value=&quot;&quot;/&amp;gt;&amp;lt;label&amp;gt;_updatedAt&amp;lt;/label&amp;gt;&amp;lt;br/&amp;gt;
&amp;lt;input type=&quot;button&quot; id=&quot;_POST&quot; value=&quot;POST&quot;/&amp;gt;
&amp;lt;input type=&quot;button&quot; id=&quot;_GET&quot; value=&quot;GET&quot;/&amp;gt;
&amp;lt;input type=&quot;button&quot; id=&quot;_PUT&quot; value=&quot;PUT&quot;/&amp;gt;
&amp;lt;input type=&quot;button&quot; id=&quot;_DELETE&quot; value=&quot;DELETE&quot;/&amp;gt;
&amp;lt;input type=&quot;reset&quot;/&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;form id=&quot;myDoc-search&quot;&amp;gt;
&amp;lt;input type=&quot;text&quot; name=&quot;msgTxt&quot; value=&quot;&quot;/&amp;gt;
&amp;lt;input type=&quot;button&quot; id=&quot;_SEARCH&quot; value=&quot;SEARCH&quot;/&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;h2&amp;gt;messages&amp;lt;/h2&amp;gt;
&amp;lt;p id=&quot;myDoc-list&quot;&amp;gt;&amp;lt;/p&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
明日はこのアプリ自体のJavaScriptソースを書かなくてもいいようにクラスとidの命名規則で動くように作る。そこまで出きたらjsonengineのBBSとjson-noteをこのプラグインで書けるようにチャレンジ。&lt;br /&gt;
&lt;br /&gt;
多分そこまで出来るようになったらもっとjsonengineの利用が増えるんじゃないかと。</content><link rel='replies' type='application/atom+xml' href='http://tsutomuuchima.blogspot.com/feeds/3433835530152803236/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jsonenginejquery.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/3433835530152803236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/3433835530152803236'/><link rel='alternate' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jsonenginejquery.html' title='jsonengine用のアプリを簡単に書けるようなjQueryプラグイン書いた'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6099765729490662381.post-7498249399865096490</id><published>2011-02-18T16:30:00.007+09:00</published><updated>2011-02-26T04:27:46.096+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="memo"/><title type='text'>blogspot.comにSyntaxHighlighterを導入する。</title><content type='html'>いろいろソースコードを掲載する予定なのでこんな風に表示したい。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: js&quot;&gt;var print = function(e){
  console.log(e);
}
&lt;/pre&gt;&lt;br /&gt;
手作業でハイライトを編集するのは面倒なのでSyntaxHighlighterを導入することにした。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;head/&amp;gt;にソースを追加。&lt;br /&gt;
&lt;br /&gt;
blogspot.comのダッシュボードからデザイン&amp;gt;HTMLの編集を選択。&amp;lt;head/&amp;gt;を見つけて最後の要素として以下のものを追加。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: xml&quot;&gt;&amp;lt;link href=&quot;http://sites.google.com/site/bloggermintcom/shCore.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&amp;lt;/link&gt;

&amp;lt;link href=&quot;http://sites.google.com/site/bloggermintcom/shThemeDefault.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&amp;lt;/link&gt;

&amp;lt;script src=&quot;http://sites.google.com/site/bloggermintcom/shCore.js&quot; type=&quot;text/javascript&quot;/&gt;

&amp;lt;script src=&quot;http://sites.google.com/site/bloggermintcom/shBrushCss.js&quot; type=&quot;text/javascript&quot;/&gt;

&amp;lt;script src=&quot;http://sites.google.com/site/bloggermintcom/shBrushJScript.js&quot; type=&quot;text/javascript&quot;/&gt;

&amp;lt;script src=&quot;http://sites.google.com/site/bloggermintcom/shBrushXml.js&quot; type=&quot;text/javascript&quot;/&gt;

&amp;lt;script type=&quot;text/javascript&quot;&gt;
SyntaxHighlighter.all()
&amp;lt;/script&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
使い方&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=”brush: xml”&amp;gt;&lt;br /&gt;
Your script here&lt;br /&gt;
&amp;lt;/pre&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://tsutomuuchima.blogspot.com/feeds/7498249399865096490/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/how-to-add-syntaxhighlighter-for.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/7498249399865096490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/7498249399865096490'/><link rel='alternate' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/how-to-add-syntaxhighlighter-for.html' title='blogspot.comにSyntaxHighlighterを導入する。'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6099765729490662381.post-3765997429594558879</id><published>2011-02-18T15:57:00.008+09:00</published><updated>2011-02-26T04:32:05.908+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="extjs"/><category scheme="http://www.blogger.com/atom/ns#" term="jsonengine"/><title type='text'>jsonengineとExt.treeを使ったデモ</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://cdn-ak.f.st-hatena.com/images/fotolife/T/TsutomuUchima/20110215/20110215183215.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;206&quot; src=&quot;http://cdn-ak.f.st-hatena.com/images/fotolife/T/TsutomuUchima/20110215/20110215183215.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
デモはこちら。&lt;a href=&quot;http://uchjava.appspot.com/samples/extjs/samples/tree.html&quot; target=&quot;_blank&quot;&gt;http://uchjava.appspot.com/samples/extjs/samples/tree.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
コードはこんな感じ。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: js&quot;&gt;Ext.onReady(function() { 
 
 var treePanel = new Ext.tree.TreePanel( { 
  dataUrl      : &#39;/_je/testTree&#39;,
  requestMethod: &#39;GET&#39;,
  nodeParameter: null,
  root: { 
   nodeType: &#39;async&#39;,
   text    : &#39;/&#39;,
   id      : &#39;xxx&#39; 
  } 
 });
 
 // event override 
 treePanel.on(&quot;beforeload&quot;, function(node){ 
  this.loader.baseParams.cond = &#39;node.eq.&#39; + node.id;
 });
 
 // render the tree 
 treePanel.render(Ext.getBody());
 treePanel.getRootNode().expand();
 
});
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsutomuuchima.blogspot.com/feeds/3765997429594558879/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jsonengineexttree.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/3765997429594558879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6099765729490662381/posts/default/3765997429594558879'/><link rel='alternate' type='text/html' href='http://tsutomuuchima.blogspot.com/2011/02/jsonengineexttree.html' title='jsonengineとExt.treeを使ったデモ'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>