Skip to content
조회 수 5077 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

참고글 : http://cocoabiscuit.tistory.com/42


구글 스프레드시트를 데이터베이스로 이용하기 - 1. ajax POST를 통한 기록 편

http://rocabilly.tistory.com/27



$.post() 방식

 

- 서버에 데이터를 HTTP POST 방식으로 전송한 후 서버측 응답 받을 때 사용

 

[형식]

jQuery.post( url [, data] [, success(data, textStatus, jqXHR)] [, dataType] )

 

- url : 요청 Url

- data : 요청과 함께 서버에 보내는 string 또는 map

- success(data,textStatus,jqXHR) : 요청이 성공일때 실행되는 callback 함수

- dataType : 서버에서 내려온 data 형식. ( default : xml,json,script,text,html )


 $.get() 방식

 

- 서버에 데이터를 HTTP GET 방식으로 전송한 후 서버측 응답 받을 때 사용

 

[형식]

jQuery.get(  url [, data] [, success(data, textStatus, jqXHR)] [, dataType] )

 

- url : 요청 Url

- data : 요청과 함께 서버에 보내는 string 또는 map

- success(data,textStatus,jqXHR) : 요청이 성공일때 실행되는 callback 함수

- dataType : 서버에서 내려온 data 형식. ( default : xml,json,script,text,html )



<script type="text/javascript">
    $("#form1").submit(function () {
        var jqxhr = $.post('api/updates/complex', $('#form1').serialize())
            .success(function () {
                var loc = jqxhr.getResponseHeader('Location');
                var a = $('<a/>', { href: loc, text: loc });
                $('#message').html(a);
            })
            .error(function () {
                $('#message').html("Error posting the update.");
            });
        return false;
    }); 

</script> 








MySQL 사용에 익숙한 분들은 바로 Google Visualization API Query Language(https://developers.google.com/chart/interactive/docs/querylanguage) 문서를 읽어보세요. 

쉽게 사용할 수 있을 겁니다.


해당 스프레드시트에 테스트를 위한 임의의 값을 입력하고 

'파일 > 공유 > 액세스 권한이 있는 사용자'의 설정을 '비공개'에서 '링크가 있는 모든 사용자에게 공개' 또는 '웹에 공개'로 변경합니다.



1.png  2.png


3.png


스프레드시트를 생성하면 https://docs.google.com/spreadsheet/ccc?key=ABCDE#gid=0 형태의 고유한 url을 가지게 되는데 여기서 key값인 ABCDE를 복사하세요.


로그인 후 댓글쓰기가 가능합니다.

?

  1. 11
    Nov 2014
    08:12

    Google Spreadsheet (Docs) 에서 우리은행 환율정보 이용하기

    Category[Docs]스프레드시트 Views29867
    Read More
  2. 11
    Nov 2014
    08:17

    음력변환

    Category[Docs]스프레드시트 Views17849
    Read More
  3. 11
    Nov 2014
    08:22

    쇼킹한 웹 긁어오기

    Category[Docs]스프레드시트 Views3903
    Read More
  4. 10
    Feb 2015
    23:12

    구글 스프레드시트(Google Spreadsheet)를 데이터베이스로 활용

    Category[Docs]스프레드시트 Views4521
    Read More
  5. 10
    Feb 2015
    23:26

    Extending Google Sheets

    Category[Docs]스프레드시트 Views4646
    Read More
  6. 09
    Jul 2015
    07:58

    구글드라이브 API

    Category[Docs]스프레드시트 Views4541
    Read More
  7. 20
    Jul 2015
    23:07

    구글 스프레드시트(Google Spreadsheet)를 데이터베이스로 활용하기

    Category[Docs]스프레드시트 Views5077
    Read More
  8. 18
    Nov 2015
    02:24

    Google 문서도구를 컴퓨터에 동기화

    Category[Docs]스프레드시트 Views4377
    Read More
  9. 24
    Jun 2016
    18:09

    스프레드 웹게시로 불러오기

    Category[Docs]스프레드시트 Views4704
    Read More
  10. 06
    Aug 2016
    11:46

    구글 드라이브에서 다른 파일 데이터 참조하기

    Category[Docs]스프레드시트 Views6323
    Read More
  11. 06
    Aug 2016
    12:05

    Google SpeadSheet 조건에 맞는 데이터만 참조하여 가져오기(importrange, Query)

    Category[Docs]스프레드시트 Views12928
    Read More
  12. 08
    Aug 2016
    00:03

    스프레드시트 api append & update php 셀 내용 수정

    Category[Docs]스프레드시트 Views5313
    Read More
  13. 13
    Aug 2016
    08:26

    구글 스프레드시트 설문지 내맘대로 수정하기

    Category[Docs]스프레드시트 Views11616
    Read More
  14. 30
    Apr 2017
    10:17

    구글 스프레드시트를 이용한 지메일 예약발송 방법

    Category[Docs]스프레드시트 Views10788
    Read More
  15. 13
    Jan 2018
    12:51

    구글 스프레드시트 ajax POST를 통한 기록 따라해보기

    Category[Docs]스프레드시트 Views6662
    Read More
  16. 19
    Jan 2018
    16:29

    스프레드시트의 내용이 수정될 경우 즉시 메일발송하는 스크립트 테스트 중

    Category[Docs]스프레드시트 Views7526
    Read More
  17. 23
    Jan 2018
    21:59

    google spreadsheets html form post로 전달받기

    Category[Docs]스프레드시트 Views6858
    Read More
  18. 25
    Jan 2018
    13:07

    스프레드시트 autohotkey html gmail 스마트폰 이용하여 핑로스 즉시 알림받기

    Category[Docs]스프레드시트 Views10576
    Read More
  19. 31
    Aug 2018
    21:05

    구글캘린더 CSV 파일로 일괄 기록하기

    Category[Docs]스프레드시트 Views12225
    Read More
  20. 09
    Jan 2019
    09:24

    구글 앱스 스크립트(Google Apps Script) 외부에서 실행하기

    Category[Docs]스프레드시트 Views6802
    Read More
Board Pagination Prev 1 2 Next
/ 2

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소