input.jsp 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="IE=edge" http-equiv="X-UA-Compatible">
  6. <meta content="initial-scale=1.0, width=device-width" name="viewport">
  7. <title>test</title>
  8. <!-- css -->
  9. <script type="text/javascript" src="jquery-1.11.1.js"></script>
  10. <TITLE>Checking if Acrobat Reader installed (IE4+)...</TITLE>
  11. <SCRIPT>
  12. function test(){
  13. $.ajax({
  14. type: 'post',
  15. url: '../../fjcontroller/viewpdf.do?id=8a819eb250db23610150e9e13d6017dd',
  16. data:{uid:"402881e44e86c26d014e86c9ae8c0008"},
  17. dataType: 'json',
  18. success: function(data){
  19. //alert(data.path);
  20. window.open("test.jsp?value="+data.path+"&width="+(document.documentElement.clientWidth-30)+"&height="+(window.screen.height-65),"newwindow", "height="+window.screen.height+", width="+document.documentElement.clientWidth+", top=0,left=0,toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no");
  21. }})
  22. }
  23. </SCRIPT>
  24. </HEAD>
  25. <BODY>
  26. <input type="button" id="test" value="open" onclick="test();"/>
  27. </BODY>
  28. </HTML>