WebDAVで謎の認証と回避方法 Smartyで(?)HTMLの表示が遅くなる条件?
3月 12

www.example.com/script.php?hoge=fugaaaa

というリクエストがあった場合、出力されたHTML中で、”fugaaa”という文字を取得したい場合、JavaScriptでlocation.hrefを元に、自力でパースする方法もあるけれど、非常に面倒。

そういう時は、Flash挿入用のタグを出力するためのライブラリ、SWFObject: Javascript Flash Player detection and embed scriptを使うと楽である。

[js]


[/js]

という感じで、取得できます。主にFlashへの値(FlashVars)を渡す場合に使うと便利。

[js]

[/js]

Popularity: 16% [?]

written by ANN

add to hatena hatena.comment (8) add to del.icio.us (1) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 9

Leave a Reply