Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to dynamic-URL pages at 立法院法律系統 #17

Open
kong0107 opened this issue Aug 28, 2013 · 1 comment
Open

Link to dynamic-URL pages at 立法院法律系統 #17

kong0107 opened this issue Aug 28, 2013 · 1 comment
Labels

Comments

@kong0107
Copy link
Member

依照之前的觀察,非靜態頁面的網址都有個奇怪的碼,似乎是故意不讓使用者用permalink連過去。

試了一下可以在該系統首頁這樣找到:

document.TTSWEB._TTS_CONTROL_.value.substr(0,2);

或是用較標準(?)的寫法:

document.getElementsByName("_TTS_CONTROL_")[0].value.substr(0,2);

在 Chrome 應該可以用Crossing-Origin XHR取得,藉以生成即時連結--但用在浮動視窗時,仍要注意使用者「過一段時間後才再顯現該浮動視窗」的情形。

@clkao
Copy link
Member

clkao commented Aug 28, 2013

應該不是故意,只是古早 stateful session 的一種作法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants