Archive for the ‘PhoneGap’ Category

 

pageやdivは、uiを再度、反映できない。 can not refresh page,div like listview | #jquerymobile #phonegap

2月 5th, 2012

listviewの場合は、使い回しても $(‘#list_result’).listview(‘refresh’); で ui を反映できるが pageやdivなど指定しても出来ない。以前は? .page() や.trigger(‘create’)が使えたよう?ですが今は使えません。 なので、ui 関連classを入れてしまいます。 $(‘#mybutton_area’).html(‘<a class=”ui-btn ui-btn-corner-all ui-shadow ui-btn-up-c” href=”‘+urldayo+’” ><span class=”ui-btn-inner ui-btn-corner-all ui-corner-top ui-corner-bottom”>ボタンだよ</span></a>’); ページオブジェクトを完全に削除したりしている方もいるようなので、全体を変える場合はそれでも良いのかもしれません。 局所的な変更は、これで良いようです。

Read full article | コメントは受け付けていません。

ui class not working at second loading page | PhoneGap x jquerymobile

2月 3rd, 2012

・ページキャッシュが利用されるとき? ui class が反映されなかった。 一度目は大丈夫だけど、戻る→進むで表示するとclassが反映されない。 生成したDOMに、jquerymobileが ui-クラスをつけてくれるタイミングがわからない。 http://jquerymobile.com/demos/1.0.1/docs/lists/docs-lists.html Updating lists If you add items to a listview, you’ll need to call the refresh() method on it to update the styles and create any nested lists that are added. For example: $(‘#mylist’).listview(‘refresh’); これでいけるみたいだけど、listview()がありませんといわれる。 changepageしたあとに $(‘ul#list-result’).listview(‘refresh’); で大丈夫でした。タイミングが難しいですね。 .page() functionを呼ぶ方法もありそうです。

Read full article | コメントは受け付けていません。

PhoneGapハジメテミル。

2月 3rd, 2012

11:06 開始。 本サイトを見てみる。 http://phonegap.com なかなかかわいいサイトです。 http://phonegap.com/about/features/ こんな機能に対応してるそうです。 下のリリースを読む。 http://www.adobe.com/aboutadobe/pressroom/pressreleases/201110/AdobeAcquiresNitobi.html adobe acquires nitobi : アドビがニトビを買います。 adobe製品と連携しているのでそっちになれている人は良さそうです。 + google groups http://groups.google.com/group/phonegap ちょうど 1.4 が 1/31にリリースされたようですね。 11:20 start いちおxcodeを更新しておく。 http://phonegap.com/start ダウンロードした、callback-phonegap-xxxx の中の lib/PhoneGap-1.4.1.dmg を開く。 PhoneGap-1.4.1.pkgを開いてインストール開始 xcode からPhoneGap-based Applicationを作成 名前を付けて Run するとbuild は成功して www/index.htmlがないよとエラーが表示される。 プロジェクトを作成したディレクトリの中には、wwwティレクトリーがある( index.html phonegap-1.4.1.js が入ってる。) Next step is IMPORTANT! Drag the www folder into Xcode 4. […]

Read full article | コメントは受け付けていません。