インターネット
Javascript 親ウィンドウを更新(Reload)してみる
by yajima on 11 月.27, 2008, under Javascript, インターネット, ホームページ製作
意外ともたつくことが多いのでメモ。
ページの流れ
- メインのページ(A)
- サブウィンドウのページ(B)
- メインページ(A) のリンクから サブウィンドウ(B) を別窓で開く。
- サブウィンドウ(B) で、フォーム処理(ログインとかね)する。
- サブウィンドウ(B) を閉じたら、メインページ(A) を更新する。
この流れで、よくある失敗が、メイン(A)の更新処理を別ウィンドウ(B)から、どうやってアクセスするかというところ。
- サブウィンドウ(B)から見たメインウィンドウ(A) → window.opener
- それを location.reload() して更新する。
実際には、サブウィンドウ(B) の onload とか、 「閉じるリンク」の onclick などのいずれかに
<script type=”text/javascript”><!–
window.opener.location.reload();
//–></script>
を記述します。
onload に記述した場合、サブウィンドウ(B) を閉じる前に、バックグラウンドで更新するので、ウィンドウをブラウザの閉じるボタン[×] で閉じられた場合にも対応できるのでオススメ。
※メインページがフォームPOST直後のページだったり、動的なページの場合は、更新タイミングで「POSTデータを再送信しますか?」みたいな警告が出る場合があります。
これは、メインページの方で、対処しておくといいです。
博士も知らないニッポンのウラ(情報番組)
by yajima on 11 月.18, 2008, under インターネット, テクノロジー, ニュース, ビジネス, 健康, 政治, 極論, 災害, 経済
「ええーコレってecoじゃないのー」とか目から鱗な、情報がいっぱいの番組があった。
こういうの好きだなー。
世の中には、相対的というか逆説的な物が溢れている!
正しい情報を正しく取得する方法を身につけなければいけないと思った。
バックナンバーは、こちらのページからも見れます。
博士も知らないニッポンのウラ シリーズ
SEOスターターガイド(Google公式)
by yajima on 11 月.17, 2008, under SEO, インターネット
Googleの「Official Google Webmaster Central Blog」(英文)にポストされた記事に、SEOに関するスターターガイドが公開されています。
今さら感もあるのですが、Googleが公式ブログで公開したという事に大きな意味があると思います。
SEOに熱心な皆さんも自分の今までの対策が間違っていないか再確認してみたらいいかもしれません。
とくにディレクトリ階層、ナビゲーションのあたりなどは、参考になるかもしれません。
Official Google Webmaster Central Blog: Google’s SEO Starter Guide
Our Search Engine Optimization Starter Guide covers around a dozen common areas that webmasters might consider optimizing. We felt that these areas (like improving title and description meta tags, URL structure, site navigation, content creation, anchor text, and more) would apply to webmasters of all experience levels and sites of all sizes and types. Throughout the guide, we also worked in many illustrations, pitfalls to avoid, and links to other resources that help expand our explanation of the topics. We plan on updating the guide at regular intervals with new optimization suggestions and to keep the technical advice current.







