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,674 / 8 Page
    [ MiBox3-EddyLab에디션 셋탑 Recovery 로 부팅 하기 성공 ] 댓글 1

    MiBox3-EddyLab에디션 셋탑 Recovery 로 부팅 하기카페홈에서 scrcpy 파일 다운로드 디랙토리 작성 복사 합니다https://…

    [ Termux 팁)adb_scrcpy 화면 미러링 이용으로 termux를 pc에서 화면 미러링으로 pc 키보드… ] 댓글 6

    Termux 팁)adb_scrcpy 화면 미러링 이용으로 termux를 pc에서 화면 미러링으로 pc 키보드 직접 명령어 타이핑 설치/설정하기 …

    [ 시놀로지 dos2unix 설치는 opkg 로 설치 합니다 ] 댓글 1

    윈도우에서 에디터 하고 복사사용 할때dos모드로 저장되어 ^m 이 보이지 않는 글자가 있어unix 형식으로 변경해야 한다이때 사용하는 범용 do…

    [ nanorc를 사용하여 Nano 텍스트 편집기 구성 ] 댓글 1

    nanorc를 사용하여 Nano 텍스트 편집기 구성https://linuxhint.com/configure_nano_text_editor_nan…

    [ Coreelec 의 IPTV m3u 채널 시청을 위한 TVheadend 서버 설치 설정 값 저장 ]

    Coreelec 의 TVheadend 서버 설치 설정 값 저장설정값을 저장 보관 합니다Coreelec addon 에서 설정 조건1) Tvhead…

    [ tvheadnd epg그래버 모듈 상태 보임/안보임 설정 저장 ] 댓글 1

    tvheadnd epg그래버 모듈 상태 보임/안보임설정 할때마다 안되는 설정 조건을 아래와 같이 재설정 합니다superuse 설정 아이디 암호 …

    [ 성공)갤럭시 note8 에 debian 조건 tvheadend_4.3-1896~gce0907705-dirt… ] 댓글 9

    Continuity counter error 발생에 대한 구글링 하여 많은것을 조치 하였습니다http://11q.kr/g5s/bbs/board.…

    [ Coreelec 925에서 neflix video 재생문제 해결 및 1080p 재생 조건 ]

    Coreelec 925에서 neflix video 재생문제 해결및 1080p 재생 조건기설치된 246 버전은 실행 불가능합니다InputStrea…

    [ @펌자료)우분투에서 하드디스크 자동 마운트하기 ]

    심볼릭링크 가 시놀로지에서 간단 합니다마운트 폴더로 이동 cd /volume1/web/www 마운트 data 폴더 다른 이름으로 변경 / dat…

    [ 인증서 만료로 안전하지 않음으로 접속해주세요 ]

    인증서 만료로 안전하지 않음으로 접속해주세요는 저의 서버의Let’s Encrypt SSL 인증서 가 만료 되어 발생함니다11q.kr 사이트는 안…

    [ ● 헤놀로지 부트로더 grub.cfg 설정시 DiskIdxMap SataPortMap 설정값 구성 방법 ] 댓글 4

    ● 헤놀로지 부트로더grub.cfg 설정시DiskIdxMap SataPortMap 설정값 구성 방법1) 부트로더에ds3615 와 ds918p 사…

    [ ● ESXi 7.0 기동 시 가상 시스템 자동 시작 설정 방법 및 메뉴얼 pdf ]

    ●ESXi 7.0 기동 시 가상 시스템 자동 시작 설정 방법ESXi 7.0 기동 시 가상시스템 헤놀로지 자동 시작 설정 방법ESXi 서버를 한 …

    [ ● 시놀로지작업)docker를 사용하여 Synology NAS에 Nextcloud를 설치하기 위한 가이드 ] 댓글 8

    ● 시놀로지작업)docker를 사용하여 Synology NAS에 Nextcloud를 설치하기 위한 가이드작업)nextcloud 시놀로지에 설치 …

    [ ●USB연결 성공사용방법) ESxi 7.0 서버 적용 vm_windows11/해놀의 USB인식이 되지 않는다… ] 댓글 4

    ●USB연결 성공 사용방법) ESxi 7.0 서버 적용 vm_windows11 의 USB인식이 되지 않는다 > 자동으로 연결하기문제점 : …

    [ ★★★ Proxmox 정보 및 PVE 다운로드 하여 설치 테스트 준비 성공 ] 댓글 1

    ●Proxmox 정보 및PVE다운로드 하여 설치 테스트 준비 성공우리는 귀하의 서버 관리를 단순화하기 위해 강력하고 효율적인 오픈 소스 소프트웨…

    [ ● usb작업 빌드 )헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용 ] 댓글 10

    ● usb작업)헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용본 작업은 저의 안되는 구형 노트북 system…

    [ ★★★ UEFI 버전)tinycore-redpill-uefi.v0.4.5.img.gz 부팅UEFI 변경 작업… ] 댓글 4

    ● tinycore-redpill-uefi.v0.4.5.img.gz 부팅UEFI 변경 작업기 명령어 초기값 추가 마운트 작업 입니다. uefi로…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-18 04:21:03

    오늘의 홈 현황


    • 현재 접속자♨ 457 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 21 명
    • 오늘 방문자 976 명
    • 어제 방문자 1,772 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,384,388 명
    • 전체 게시물※ 8,643 개
    • 전체 댓글수※ 24,749 개
    • 전체 회원수 11,055 명

    QR코드


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

    알림 0








    최신글↑