Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

パネルのサイズ調整方法を決定するブール値プロパティ。移動先のページは現在のページと同じドメイン内にないといけません。

使用されるサイズはブラウザによって決定され、ブラウザごとにわずかに異なります。初期設定のサイズにも影響を受けます。一番よい結果を得るためには、パネルのコンテンツ・ページのサイズを明確にして、ブラウザにより決定される必要がないようにします。また、Operaはパネルのサイズを縮小することはありませんので注意してください。

nav_urlを使用する場合、URLはWAMと同じサーバーからでなくてはいけません。ブラウザのセキュリティ制限により、あるサーバーからのページのプログラムは、他のサーバーからのページの情報にアクセスできないようになっています。パネルのコンテンツが別サーバーからのものである場合、パネルはそのサイズを決定できません。別サーバーを指すURLを使用すると、プロンプターのコードは"アクセス拒否" エラーで失敗します。

デフォルト値

false() - 移動時、パネルはサイズ調整されません。

有効値

true()、false()、‘once’、もしくは有効な式。true()を設定すると、フレームはナビゲーションの度に移動先のページのコンテンツのサイズに調整されます。'once'を設定すると、サイズ調整は最初のナビゲーション時のみ行われ、それ以降のナビゲーションではパネルはそのサイズのままになります。

A Boolean property that determines how the panel is sized. The navigated-to page must be in the same domain as the current page.

The size used will be determined by the browser and may vary slightly from browser to browser.  It may also be affected by the initial size.  For best results, make sure your panel content page explicitly sizes its content so that the browser doesn't have to decide for itself.  Note, also, that Opera will not reduce the size of the panel.

If using nav_url, the URL must be from the same server that the WAM is from.  Browser security restrictions prevent code in a page from one server accessing information in a page from another server.  If the panel content is from another server, the panel will not be able to determine its size. Using a URL that points to another server will cause the prompter code to fail with an "access denied" error.

false() – the panel is not resized when navigated to.

true(), false(), 'once', or a valid expression. If set to true(), the frame will be sized to the content of the page it navigates to every time the navigation occurs. If set to 'once', the sizing will occur only on the first navigation and the panel will remain at that size on subsequent navigations.