11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


작업중_실패)PDF를 웹으로 볼수 있는 Google Docs Viewer plugin for jQuery 첨부 파일 pc/모바일 모두 pdf보기 가능

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    PDF를 웹으로 볼수 있는 Google Docs Viewer plugin for jQuery  첨부 파일 pc/모바일 모두 pdf보기 가능

    Google Docs Viewer plugin for jQuery

    Here's a little jQuery plugin I wrote recently that automatically embeds the Google Docs Viewer for viewing pdf, doc, docx, ppt and tiff files linked to by anchor tags.


    The Google Docs Viewer is an embeddable browser-based viewer that requires only a URL to a file available online.

    This neatly bypasses the need for users to have compatible software on their machines for those file types and displays the document right in the browser.


    Usage


    1. Add jQuery and the gDocsViewer plugin to the page.

    1.

    <head>

    2.

    <script type="text/javascript" src="jquery.min.js"></script>

    3.

    <script type="text/javascript" src="jquery.gdocsviewer.min.js"></script>

    4.

    </head>


    2. Set some class name or id to the anchor tag for all URLs to files that you want to be displayed using the Google Docs Viewer. E.g. "embed"

    1.

    <a href="urltofile.pdf" class="embed">Download file</a>

    1.

    <a href="urltofile.pdf" id="embedURL">Download file</a>


    3. Initialize gDocsViewer and set it to process the URL with id or all URLs with the class name set in the previous step.

    1.

    $('a.embed').gdocsViewer();

    1.

    $('#embedURL').gdocsViewer();


    Customization


    The plugin offers two configuration options that set the width and height of the embedded document IFRAME. This can be set when the plugin is initialized.

    1.

    $('a.embed').gdocsViewer({ width: 400, height: 500 });


    The plugin inserts a the IFRAME for the viewer inside an injected DIV. The DIV tags all carry the class name "gdocsviewer",
    which allow for styling all the gdocsViewer instances via CSS. If the anchor tag has the ID attribute defined,

    then the injected DIV tag is also set an ID attribute in the format of ID_of_Anchor + '-gdocsviewer'. See the demo source code for more details.


    Demo


    - Check out the live demonstration


    License

    This script is released under the Open Source MIT License, allowing its use in both personal and commercial applications as long as the copyright and license permission notice remains intact.


    Download

    - jquery.gdocsviewer.v1.0.zip (v1.0, 2.2KB)


    Enjoy!

    This entry was posted by Jaa on Monday, February 21. 2011 at 19:00. You can leave a response, or trackback from your own blog.

    Defined tags for this entry: gdocsviewer, google docs viewer, javascript, jquery, plugin, projects, release

    Related entries by tags: Dhivehi Phonetic (with Naviyani) Keyboard Installer for Windows Filibari Keyboard for Thaana Moment.

    js Dhivehi locale merged Dhist launched! Integrating JTK with tinyMCE 4.x

    Email this • Share on Facebook • Digg This! • Save to del.icio.us • AddThis!


    Trackbacks

    Trackback specific URI for this entry

    No Trackbacks

    Comments

    Display comments as (Linear | Threaded)

    3232235521_1517405373.3121.png


    <!-- 11q.kr 첨부된 gdocsViewer 영역 시작입니다 20180131-->
    <!-- view.skin.php의 하단 적당한 위치에 소스 복사 및 /mw.js/ 또는 폴더 경로복사 /수정후 jquery.gdocsviewer.min.js 파일 복사 먼저 하세요 -->
    <head>
    <title>gDocsViewer pdf Demo</title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> 
    <script type="text/javascript" src="<?=$board_skin_path?>/mw.js/jquery.gdocsviewer.min.js"></script> 

    <style type="text/css">
    /* Style the second URL with a red border */
    #test-gdocsviewer {
    border: 5px red solid;
    padding: 20px;
    width: 500px;
    background: #ccc;
    text-align: center;
    }
    /* Style all gdocsviewer containers */
    .gdocsviewer {
    margin:10px;
    }
    </style>
    <script type="text/javascript"> 
    /*<![CDATA[*/
    $(document).ready(function() {
    $('a.embed').gdocsViewer({width: 400, height: 400});
    $('#embedURL').gdocsViewer();
    });
    /*]]>*/
    </script> 
    </head>
    <body style="background:#999; font-family:arial, helvetica, sans-serif; font-size:14px;">

    <hr size="1" />
    <div>
            <a href="<?php echo $view['file'][0]['path'];?>/<?php echo $view['file'][0]['file'];?>" class="embed">gdocsViewer 첨부1 </a>
    <a href="<?php echo $view['file'][1]['path'];?>/<?php echo $view['file'][1]['file'];?>" class="embed">gdocsViewer 첨부2 </a>
    </div>
    </div>
    </body>

    <!-- 11q.kr 첨부된 gdocsViewer 영역 시작입니다 - 추가끝 입니다 -->

    주)  본자료는 시현했으나  저의 시스템  모바일에서  안되서
          공부중 입니다

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.165.205) 작성일

    서버에 파일을 다운로드하기 위해서해야 할 일은 다음과 같습니다.

    https://stackoverflow.com/questions/3938534/download-file-to-server-from-url

    file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip"));
    단 하나의 문제가 있습니다. 100MB와 같은 큰 파일이 있다면 어떨까요? 그런 다음 메모리가 부족하여 파일을 다운로드 할 수 없습니다.

    내가 원하는 것은 파일을 다운로드 할 때 디스크에 파일을 쓰는 방법입니다. 그렇게하면 메모리 문제가없이 더 큰 파일을 다운로드 할 수 있습니다.

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.165.174) 작성일
    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.165.174) 작성일
    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.164.233) 작성일

    pc모드 (크롬브라우즈)에서  보이지 않네요

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.164.233) 작성일
    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.165.185) 작성일

    첨부1의 경로와 파일이름
    <?php echo $view['file'][0]['path'];?>/<?php echo $view['file'][0]['file'];?>

     첨부2의 경로와 파일이름
     <?php echo $view['file'][1]['path'];?>/<?php echo $view['file'][1]['file'];?>


    echo "<a href='{$view[file][$i][path]}/{$view[file][$i][file]}'>";
    이렇게 한번 해보세요..

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.165.185) 작성일
    profile_image

    돌돌이아빠님의 댓글

    no_profile 돌돌이아빠 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 아이피 (112.♡.5.46) 작성일

    감사합니다.^^

    profile_image

    shimss11q님의 댓글의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.203.244) 작성일

    본자료는  pc 에서는 시현했으나    모바일에서  안되서 공부중 입니다

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.203.244) 작성일
    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.203.238) 작성일
    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (223.♡.203.238) 작성일
    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (210.♡.41.89) 작성일

    업로드확장자 추출하기
    http://sexy.pe.kr/tc/88

    profile_image

    shimss11q님의 댓글

    shimss11q 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (210.♡.41.89) 작성일

    첨부파일 시 확장자 체크 (이미지 체크)
    https://sir.kr/g4_tiptech/21438

    목록

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,675 / 83 Page
    [ [CSS/Script] 해상도 상관없이 중앙정렬 레이어메뉴 ]

    \r\n\r\n\r\n\r\n[CSS/Script] 해상도 상관없이 중앙정렬 레이어메뉴 \r\n\r\n\r\n\r\n\r\n\r\n\r\n글쓴이…

    [ ♥ ds-107 시놀로지 nas 장비에서 파일 관리자에서 파일 링크 찾아 카피 붙이기 ]

    ♥ ds-107 시놀로지 nas 장비에서 파일 관리자에서 파일 링크 찾아 카피 붙이기 \r\n◎ 네이버에서 [https://11q.kr 홈피] …

    [ ezlink 관련정보_synology ds-107 설치 방법 ] 댓글 1

    ♥http://isulnara.com/tt/236 에서 참조 설치 하여정상적인 링크생성및 link가 되지 않는 이유는 몇가지설정에 변경이필요합니…

    [ 심볼릭 하여 data 폴더 공유/ 한쪽 지우면 다른쪽 지워짐 ] 댓글 1

    심볼릭 하여 data 폴더 공유/ 한쪽 지우면 다른쪽 지워짐\r\n\r\n[ 이제 putty.exe 로\r\n터미널 연결 id:root,pass…

    [ 마운트(mount)란 무엇을 의미하며 왜 사용하는가? 그, 실질적인 의미[link자료] ]

    1 : 마운트(mount)란 무엇을 의미하며 왜 사용하는가? 그, 실질적인 의미\r\n\r\n리눅스에서 마운트(mount)의 의미를 정확하게 이…

    [ 림스모바일 상단 메뉴 만들기 rimsoft mobile menu 추가 head.php ]

    <?\r\n// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함\r\nif (!defined("_GNUBOARD_")) exit; //…

    [ 최고관리자 자동로그인 되개 하기 모바일/ 아미나 모바일 최고 관리자 자동로그인 ]

    최고관리자 자동로그인 되개 하기 모바일/ 아미나 모바일 최고 관리자 자동로그인\r\n수정 내용 ss 자동로그인 관리자 가능 수정1/3~3/3 참…

    [ DTD버전에 제나플러스 빌더(복사) 설치 ] 댓글 1

    DTD버전에 제나플러스 빌더(복사) 설치1.베너 추가 되지 않음\r\n변경전 39~40번재bn_bimg_name = '$bn_bimg_name'…

    [ 아미나 스킨최신글 리스트 list 설명 ]

    최근글 추출방법 설정하기 - type, bo_list, ca_name, order, termAD한별아빠신고글주소01조회431최근글2013.04.…

    [ 아미나v3 테마 업데이트 정보 pc모드 홈피 auto menu.php 최신글index.php 하단 foo… ]

    아미나 테마 업데이트 정보 pc모드 홈피 auto menu.php 최신글index.php 하단 footer.php.내용 입니다관련 첨부 자료를 …

    [ 난 최신글만 우려 먹는다.(제나플러스 실패) ]

    난 최신글만 우려 먹는다.\r\n\r\n\r\n東問西答\r\n작성일시2012.09.06 10:51:56\r\n조회1,223\r\n댓글16첨부파일…

    [ [아미나 PC홈 수정] 중앙 움직이는 게시판 사진 겔러리 최신글 ] 댓글 1

    \r\n\r\n<!-- 사이트 로고w:\ami\thema\basic\head.php에서 아래를 삭제후 중앙 baner를 제거 합니다\r\n…

    [ Synology diskstation DS-712+ Mail 서버 만들기/Mail station 패캐지 설치… ] 댓글 3

    \r\n시놀로지 ds712 synology e-mail/email 설정/서버설정 (2012월3월9일up) 그누보드 이메일 설정하기 ,이메일의 모…

    [ 겔러리 썸네일 문제...^_^.. ] 댓글 1

    댓글이 달린지도 몰랐네요. 자기 댓글에 글달렸을때도 확인 가능하면 좋을거같아요! 3.2.4버전이랑 비교하니깐 common.lib.php에 //$…

    [ [해결]G4에서 모바일 접속시 폰트가 작아서 볼수가 없습니다 ]

    [해결]G4에서 모바일 접속시 폰트가 작아서 볼수가 없습니다 어디를 수정 해야 하는지요LV 5심봉사조회6기타2013.10.09 12:20안녕하세…

    [ Synology DiskStation 사용자 가이드 ]

    11q.kr 는 네이버/구글에서 검색 찾아오세요.Synology DiskStation 사용자 가이드\r\n\r\n\n[이 게시물은 관리자님에 의…

    [ 시놀로지 2개의 랜선을 연결 속도 증가 스키기 lan 2 port Synology NAS에서 Link Agg… ]

    제품 지원지식 기반호환성NAS 선택기NVR 선택기RAID Calculator 다운로드 센터다운로드 센터 기타 리소스베타 프로그램 개발자 타사 응…

    [ 사진 썸네일 가장 빠르게 생성하는 방법! | Photo Station ] 댓글 2

    링크에서 원본 출처 입니다.사진 썸네일 가장 빠르게 생성하는 방법!|Photo Station2012.03.20 10:49마르(amarese)정회…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-25 15:55:37

    오늘의 홈 현황


    • 현재 접속자♨ 837 명
    • 오늘 가입자※ 2 명
    • 어제 가입자※ 0 명
    • 주간 가입자※ 11 명
    • 오늘 방문자 1,681 명
    • 어제 방문자 1,287 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,394,237 명
    • 전체 게시물※ 8,654 개
    • 전체 댓글수※ 24,771 개
    • 전체 회원수 11,068 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑