Changeset 37430 for websites

Show
Ignore:
Timestamp:
05/08/10 22:12:07 (3 years ago)
Author:
NeoCat
Message:

open OAuth frame with location.search ( Chrome cannot access top.location from file:/// )

Location:
websites/twicli/oauth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/oauth/oauth2.html

    r37185 r37430  
    1717</table> 
    1818 
    19 <iframe style="border: 0" width="100%" height="200" src="accessToken.html"></iframe> 
     19<iframe name="ac" style="border: 0" width="100%" height="200"></iframe> 
     20<script type="text/javascript"><!-- 
     21        window.frames.ac.location.href = "accessToken.html" + location.search; 
     22//--></script> 
    2023 
    2124<table> 
  • websites/twicli/oauth/twicli_oauth.js

    r37429 r37430  
    4747} 
    4848 
    49 function getArg(key) { var v = top.location.search.split(key+'='); return v[1] && v[1].split('&')[0]; } 
     49function getArg(key) { var v = location.search.split(key+'='); return v[1] && v[1].split('&')[0]; } 
    5050 
    5151function fillRequst(f1, f2) {