<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkEFRHs6fyp7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719</id><updated>2011-11-28T08:03:35.517+08:00</updated><category term="wishlist" /><category term="ANN" /><category term="0.2" /><category term="0.1" /><category term="bug" /><category term="RJS" /><category term="patch" /><title>Use jQuery on Rails</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://jq4r.blogspot.com/" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/jq4r" /><feedburner:info uri="jq4r" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkMCRn89eyp7ImA9WxZRF0k.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-6999673295514547669</id><published>2008-02-11T23:39:00.000+08:00</published><updated>2008-02-11T23:41:07.163+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-02-11T23:41:07.163+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="patch" /><title>Update to jQuery 1.2.3</title><content type="html">As title.&lt;br /&gt;&lt;br /&gt;Now, the jq4r.js in the repository's trunk has been updated to jQuery 1.2.3.&lt;br /&gt;Update your plugin if you need the newest jQuery.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-6999673295514547669?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/Exrm5y2l1C0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/6999673295514547669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=6999673295514547669" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/6999673295514547669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/6999673295514547669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/Exrm5y2l1C0/update-to-jquery-123.html" title="Update to jQuery 1.2.3" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2008/02/update-to-jquery-123.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8FR3g5eip7ImA9WB9WEk8.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-5285853559412479075</id><published>2007-11-16T21:52:00.000+08:00</published><updated>2007-11-16T22:20:16.622+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-16T22:20:16.622+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="RJS" /><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><title>RJS is Supported Now</title><content type="html">I'm sorry that I enable &lt;code&gt;jq4r&lt;/code&gt; support RJS so lately. From the revision #27 on, you can use some (not all) RJS methods while you use &lt;code&gt;jq4r&lt;/code&gt;. For instance,&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_insert_html(position, id, *htmls)&lt;/h4&gt;&lt;br /&gt;You can insert html by using this method. The first parameter specifies the insertion position like 'before', 'after', 'wrap', and so on. For more details, please refer the &lt;a href="http://docs.jquery.com/Manipulation" target="_blank"&gt;jQuery/Manipulation's documentation&lt;/a&gt;.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_replace_html(position, id, *htmls)&lt;/h4&gt;&lt;br /&gt;This method replace the html by using the &lt;code&gt;jQuery.html&lt;/code&gt; function.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_replace(id, *htmls)&lt;/h4&gt;&lt;br /&gt;It will replace the specified element with the &lt;code&gt;*html&lt;/code&gt;.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_remove(*id_list)&lt;/h4&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_hide(*id_list)&lt;/h4&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_show(*id_list)&lt;/h4&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_toggle(*id_list)&lt;/h4&gt;&lt;/li&gt; &lt;br /&gt;  &lt;li&gt;&lt;h4&gt;jquery_visual_effect(name, id, options)&lt;/h4&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Please try the HEAD revision of jq4r and feel free to send me any suggestion if you find something wrong out. :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-5285853559412479075?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/3UkXp2b4qYE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/5285853559412479075/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=5285853559412479075" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/5285853559412479075?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/5285853559412479075?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/3UkXp2b4qYE/rjs-is-supported.html" title="RJS is Supported Now" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/11/rjs-is-supported.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UMSHk7cCp7ImA9WB9WEEk.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-5643706401778615107</id><published>2007-11-14T20:47:00.001+08:00</published><updated>2007-11-14T21:01:29.708+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-14T21:01:29.708+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><category scheme="http://www.blogger.com/atom/ns#" term="0.1" /><title>jq4r 0.1.1 Released and Fix jQuery/Ajax's Bug</title><content type="html">jq4r has a new release. Version 0.1.1 fixes some bugs in 0.1:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;lib/jq4r.rb&lt;/h4&gt;&lt;p&gt;Fix &lt;code&gt;jquery_visual_effect&lt;/code&gt; method's bug. (speed parameter doesn't be quoted)&lt;/p&gt;&lt;p&gt;Use &lt;code&gt;alias_method&lt;/code&gt; to replace the method's prefix from jq_ to jquery_&lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;install.rb&lt;/h4&gt; The script of installing the necessary files for jq4r.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;h4&gt;javascripts/jq4r.js&lt;/h4&gt;Combine the jquery-1.2.1.js and jquery.form.js into jq4r.js and patch the jQuery/Ajax's bug.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;If you use the subversion to install &lt;code&gt;jq4r&lt;/code&gt;, please update you repository to the HEAD revision.&lt;br /&gt;&lt;br /&gt;On the other hand, jQuery/Ajax has a little bug, that is, jQuery doesn't set &lt;em&gt;Accept&lt;/em&gt; header on Ajax call so that there's problem while you use &lt;code&gt;respond_to&lt;/code&gt; in Rails. Thanks for Jason Yate's patch, the script in version 0.1.1 (and HEAD revision) has been patched.&lt;br /&gt;&lt;br /&gt;Thanks for every helps from you all :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-5643706401778615107?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/7I1banScizo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/5643706401778615107/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=5643706401778615107" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/5643706401778615107?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/5643706401778615107?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/7I1banScizo/jq4r-011-released-and-fix-jqueryajaxs.html" title="jq4r 0.1.1 Released and Fix jQuery/Ajax's Bug" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/11/jq4r-011-released-and-fix-jqueryajaxs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4GRXY8cSp7ImA9WB9XFEQ.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-3914479057780300383</id><published>2007-11-08T11:37:00.000+08:00</published><updated>2007-11-08T11:52:04.879+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-08T11:52:04.879+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><title>Combine the JS files</title><content type="html">Since the common browsers create ONLY 2 HTTP requests at the same time on loading a page, I decide to combine the seperated JavaScript files into one &lt;code&gt;jq4r.js&lt;/code&gt; file. If you have installed this plugin, follow these steps:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Update from the repository&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Remove the original &lt;code&gt;${RAILS_ROOT}/public/javascripts/jquery.js&lt;/code&gt; and &lt;code&gt;${RAILS_ROOT}/public/javascripts/jquery-form.js&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Re-execute &lt;code&gt;rake jq4r:install&lt;/code&gt; for installing the new &lt;code&gt;jq4r.js&lt;/code&gt; file.&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;You NEVER need to modify your source.&lt;br /&gt;&lt;br /&gt;In the following revisions, I will put all the JavaScript code in &lt;code&gt;jq4r.js&lt;/code&gt;. How do you feel about it?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-3914479057780300383?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/nny7KFBy-8E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/3914479057780300383/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=3914479057780300383" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/3914479057780300383?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/3914479057780300383?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/nny7KFBy-8E/combine-js-files.html" title="Combine the JS files" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/11/combine-js-files.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMCRHw9cCp7ImA9WB9XEUs.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-470581085057015680</id><published>2007-11-04T16:23:00.000+08:00</published><updated>2007-11-04T17:27:45.268+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-04T17:27:45.268+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="patch" /><title>The form tag use POST method by default</title><content type="html">At revision 20, I add one line code that makes the &lt;code&gt;jquery_form_remote_tag&lt;/code&gt; use 'POST' method (or type, in jQuery/Ajax convension) by default.&lt;br /&gt;&lt;br /&gt;Thanks lamys***@hotmail for providing this solution at the project's issue page on Google code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-470581085057015680?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/lFHxowS9-Ww" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/470581085057015680/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=470581085057015680" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/470581085057015680?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/470581085057015680?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/lFHxowS9-Ww/form-tag-use-post-method-by-default.html" title="The form tag use POST method by default" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/11/form-tag-use-post-method-by-default.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04FSX87cCp7ImA9WB9QEkw.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-4215035367110623995</id><published>2007-10-24T17:18:00.000+08:00</published><updated>2007-10-24T17:58:38.108+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-10-24T17:58:38.108+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><title>Canonical Pathname</title><content type="html">In order to install jq4r more conveniently, I decide to change the path in the SVN repository. Now you need ONLY 1 step to install jq4r:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;script/plugin install http://jq4r.googlecode.com/svn/trunk/plugins/jq4r&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You never need to execute &lt;code&gt;rake jq4r:install&lt;/code&gt; any more because I clone the task into &lt;code&gt;install.rb&lt;/code&gt; so that the Rails's &lt;code&gt;script/plugin&lt;/code&gt; would automatically execute the installation process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-4215035367110623995?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/eJS-5eaBcCE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/4215035367110623995/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=4215035367110623995" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4215035367110623995?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4215035367110623995?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/eJS-5eaBcCE/canonical-pathname.html" title="Canonical Pathname" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/10/canonical-pathname.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQBSXg6cSp7ImA9WB9TGE0.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-4001650378560246852</id><published>2007-09-26T18:35:00.001+08:00</published><updated>2007-09-26T18:42:38.619+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-26T18:42:38.619+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><category scheme="http://www.blogger.com/atom/ns#" term="0.2" /><title>Prefix jq_ OR jquery_ ?</title><content type="html">After I release the version 0.1, some people told me that it would be better that use &lt;code&gt;jquery_&lt;/code&gt; as the helpers' prefix. The reason is that the helpers with &lt;code&gt;jquery_&lt;/code&gt; prefix are more readable. I accepted this suggestion and from version 0.2 on, each helper will use &lt;code&gt;jquery_&lt;/code&gt; as its prefix.&lt;br /&gt;&lt;br /&gt;This change, of course, is compatible with the &lt;code&gt;jq_&lt;/code&gt; prefix because I use the &lt;code&gt;alias_method&lt;/code&gt; to make them compatible. That's why Ruby is so popular -- powerful, elegant, and easy. :-p&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-4001650378560246852?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/uGn90mipxR8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/4001650378560246852/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=4001650378560246852" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4001650378560246852?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4001650378560246852?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/uGn90mipxR8/prefix-jq-or-jquery.html" title="Prefix jq_ OR jquery_ ?" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>6</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/09/prefix-jq-or-jquery.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEABQ388eyp7ImA9WB9TF0o.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-55816201909719114</id><published>2007-09-26T11:07:00.000+08:00</published><updated>2007-09-26T11:19:12.173+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-26T11:19:12.173+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="bug" /><category scheme="http://www.blogger.com/atom/ns#" term="0.1" /><title>jq_visual_effect's bug</title><content type="html">There's a little bug in version 0.1. The &lt;code&gt;jq_visual_effect&lt;/code&gt; helper generates the default speed with an unquoted string. For example, it should be:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$('#me').fadeTo('normal', opa, function(){});&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;but the buggy method generates:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$('#me').fadeTo(normal, opa, function(){});&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;There are 2 ways to eliminate this bug.&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;You can pass the &lt;code&gt;:speed&lt;/code&gt; argument with &lt;code&gt;"'slow'"&lt;/code&gt;, &lt;code&gt;"'normal'"&lt;/code&gt; or &lt;code&gt;"'fast'"&lt;/code&gt; (i.e. add the quote yourself).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;The other way is to modify the &lt;code&gt;jq_visual_effect&lt;/code&gt; helper in &lt;code&gt;lib/jq4r.rb&lt;/code&gt; and add quotes around &lt;code&gt;${speed}&lt;/code&gt;.&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-55816201909719114?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/uwYi-Ej2smA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/55816201909719114/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=55816201909719114" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/55816201909719114?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/55816201909719114?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/uwYi-Ej2smA/jqvisualeffects-bug.html" title="jq_visual_effect's bug" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/09/jqvisualeffects-bug.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UEQHo8eip7ImA9WB9TFUk.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-36618589370302759</id><published>2007-09-23T17:46:00.000+08:00</published><updated>2007-09-23T17:53:21.472+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-23T17:53:21.472+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wishlist" /><category scheme="http://www.blogger.com/atom/ns#" term="0.2" /><title>What will be done in 0.2?</title><content type="html">I want to add &lt;a href="http://ui.jquery.com/" target="_blank"&gt;jQuery UI&lt;/a&gt; helpers in version 0.2. Although this jQuery plugin has simplified the code of writing web UIs, it could be more easier to RoR developers if some ``templates'' are included in the jq4r plugin.&lt;br /&gt;&lt;br /&gt;If you want to use another features in jq4r, please tell me :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-36618589370302759?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/IckFUJBcH0E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/36618589370302759/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=36618589370302759" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/36618589370302759?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/36618589370302759?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/IckFUJBcH0E/what-will-be-done-in-02.html" title="What will be done in 0.2?" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/09/what-will-be-done-in-02.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8HRHw8fyp7ImA9WB9TF0o.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-4113685017822496316</id><published>2007-09-20T18:01:00.000+08:00</published><updated>2007-09-26T11:20:35.277+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-26T11:20:35.277+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><category scheme="http://www.blogger.com/atom/ns#" term="0.1" /><title>jq4r version 0.1 released</title><content type="html">In &lt;span style="font-weight: bold;"&gt;jq4r&lt;/span&gt; version 0.1, the following helpers are provided:&lt;br /&gt; &lt;ul&gt;&lt;li&gt;&lt;h4&gt;jq_link_to_remote&lt;/h4&gt;This method works as the original &lt;code&gt;link_to_remote&lt;/code&gt; method. It creates a link tag but overrides the click event handler to send request to a remote action. The relationship between &lt;code&gt;jq_link_to_remote&lt;/code&gt; and &lt;code&gt;link_to_remote&lt;/code&gt; is that &lt;code&gt;jq_link_to_remote&lt;/code&gt; is a jQuery-based implementation of &lt;code&gt;link_to_remote&lt;/code&gt;&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_load_from_remote&lt;/h4&gt;This method also creates a link to a remote action but update the content (innerHTML) of a element by the response of a remote action. It's a simplified version of &lt;code&gt;jq_link_to_remote&lt;/code&gt;, because it simply generates &lt;code&gt;$(elem).load()&lt;/code&gt; script instead of &lt;code&gt;$.ajax(...)&lt;/code&gt;.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_form_remote_tag&lt;/h4&gt;As the original &lt;code&gt;form_remote_tag&lt;/code&gt;, it creates the &lt;code&gt;form&lt;/code&gt; tag and overrides the submit event handler. &lt;code&gt;jq_form_remote_tag&lt;/code&gt; is the jQuery-based implementation of &lt;code&gt;form_remote_tag&lt;/code&gt;.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_remote_form_for&lt;/h4&gt;As &lt;code&gt;jq_form_remote_tag&lt;/code&gt;, this method is another way to create the &lt;code&gt;form&lt;/code&gt; tag with AJAX actions.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_submit_to_remote&lt;/h4&gt;Creates a button tag (accurately, an &lt;code&gt;input&lt;/code&gt; tag) thats submit data to a remote action. If the data are not specified, it will submit whole fields' values within a &lt;code&gt;form&lt;/code&gt;.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_periodically_call_remote&lt;/h4&gt;Requests a remote action periodically. With &lt;code&gt;:frequency&lt;/code&gt; option you man specify how long is the request be fired.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_observe_field&lt;/h4&gt;Observes a field within a form. While the timer event comes (if you specify the &lt;code&gt;:frequency&lt;/code&gt; option) or there's something changed within the field, the callback function will be executed.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_observe_form&lt;/h4&gt;As &lt;code&gt;jq_observe_form&lt;/code&gt;, it observes a form, instead.&lt;/li&gt;  &lt;li&gt;&lt;h4&gt;jq_visual_effect&lt;/h4&gt;By calling &lt;code&gt;jq_visual_effect&lt;/code&gt;, you can make animations in the page. As the original &lt;code&gt;visual_effect&lt;/code&gt;, the first parameter is the effect's name. In jq4r version 0.1, you may use &lt;code&gt;:animate&lt;/code&gt;, &lt;code&gt;:slide_up / :slide_down&lt;/code&gt;, and &lt;code&gt;:fade_in / :fade_out / :fade_to&lt;/code&gt;.&lt;/li&gt;&lt;/ul&gt;I will try to make &lt;span style="font-weight: bold;"&gt;jq4r&lt;/span&gt; supports more jQuery methods or plugins. Just give it a trial, and feel free to send me feedbacks to make &lt;span style="font-weight: bold;"&gt;jq4r&lt;/span&gt; much better. Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-4113685017822496316?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/Mrlk5GJIHIc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/4113685017822496316/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=4113685017822496316" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4113685017822496316?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4113685017822496316?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/Mrlk5GJIHIc/jq4r-version-01-released.html" title="jq4r version 0.1 released" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/09/jq4r-version-01-released.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8MQnwyfSp7ImA9WB9TF0o.&quot;"><id>tag:blogger.com,1999:blog-4932559015539029719.post-4930725022504987054</id><published>2007-09-20T01:19:00.000+08:00</published><updated>2007-09-26T11:21:23.295+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-26T11:21:23.295+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANN" /><title>Check jq4r out!</title><content type="html">&lt;a href="http://www.rubyonrails.org/" target="_blank"&gt;The Rails framework&lt;/a&gt; installed the &lt;a href="http://www.prototypejs.org/" target="_blank"&gt;Prototype.js&lt;/a&gt; &amp;amp; &lt;a href="http://script.aculo.us/" target="_blank"&gt;Scriptaculous&lt;/a&gt; as its default JavaScript framework and defined many useful helper methods for easing the design of JavaScript(especially, AJAX).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jq4r.googlecode.com/" target="_blank"&gt;jq4r&lt;/a&gt; is a Rails plugin, which installs the &lt;a href="http://jquery.com/" target="_blank"&gt;jQuery&lt;/a&gt; JavaScript framework and provides useful helper methods, too. I wish this plugin also eases the design of the javascripts and make your RHTML clean.&lt;br /&gt;&lt;br /&gt;Just go to &lt;a href="http://jq4r.googlecode.com/" target="_blank"&gt;the jq4r project's page&lt;/a&gt;, and send me feedbacks if you have interesting ideas or suggestions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4932559015539029719-4930725022504987054?l=jq4r.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/jq4r/~4/JLOFOHhQqSw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://jq4r.blogspot.com/feeds/4930725022504987054/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4932559015539029719&amp;postID=4930725022504987054" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4930725022504987054?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4932559015539029719/posts/default/4930725022504987054?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/jq4r/~3/JLOFOHhQqSw/check-jq4r-out.html" title="Check jq4r out!" /><author><name>ericsk</name><uri>http://www.blogger.com/profile/18370675023130925184</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="26" height="32" src="http://blog.ericsk.org/wp-content/uploads/2006/09/171838031_7ae90ee7dd_t.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://jq4r.blogspot.com/2007/09/check-jq4r-out.html</feedburner:origLink></entry></feed>

