callback.html 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html lang="ko">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>FileUploader Callback</title>
  6. </head>
  7. <body>
  8. <script type="text/javascript">
  9. // alert("callback");
  10. // document.domain 설정
  11. try { document.domain = "http://*.naver.com"; } catch(e) {}
  12. // execute callback script
  13. var sUrl = document.location.search.substr(1);
  14. if (sUrl != "blank") {
  15. var oParameter = {}; // query array
  16. sUrl.replace(/([^=]+)=([^&]*)(&|$)/g, function(){
  17. oParameter[arguments[1]] = arguments[2];
  18. return "";
  19. });
  20. if ((oParameter.errstr || '').length) { // on error
  21. (parent.jindo.FileUploader._oCallback[oParameter.callback_func+'_error'])(oParameter);
  22. } else {
  23. (parent.jindo.FileUploader._oCallback[oParameter.callback_func+'_success'])(oParameter);
  24. }
  25. }
  26. </script>
  27. </body>
  28. </html>