サクっとiUIを使ったiPhoneアプリの最適化
先日行なわれた、Css Nite Shizuoka(2010.09.23)で、お願いされたのもあって、LTをしてきました。
その時お話したのは、iUIを使ったiPhone最適化についてなのですが、form関係でバグがあるので、対応方法を掲載しておきます。
iUI.js(バージョン0.31)の修正箇所
// 97ステップ目辺り //req.open(method || "GET", href, true); if(method == "post" || method == "POST"){ req.open(method, href, true); }else{ req.open(method || "GET", href + "?"+ args.join("&"), true); } // 460ステップ付近 function submitForm(form) { // iui.showPageByHref(form.action || "POST", encodeForm(form), form.method); iui.showPageByHref(form.action , encodeForm(form), form.method || "POST"); } // 470ステップ付近 for (var i = 0; i < inputs.length; ++i){ if (inputs[i].name) // args.push(inputs[i].name + "=" + escape(inputs[i].value)); args.push(inputs[i].name + "=" + encodeURIComponent(inputs[i].value)); }
■使った感じ
■当日のスライド
Css nite(2010.09.23)
View more presentations from Yoshiki Ushida.