반응형
반응형


ajax() 메소드는 비동기 요청을 수행.

 

http://api.jquery.com/jQuery.ajax/
http://www.w3schools.com/jquery/ajax_ajax.asp

 

jQuery.ajax( url [, settings ] )Returns: jqXHR

  $.ajax({
     url:"demo_test.txt",
     success:function(result){
       $("#div1").html(result);
   }});


getJSON() 메소드는 AJAX HTTP Get 요청을 사용하여 JSON 데이터를 가져온다.

 

http://api.jquery.com/jQuery.getJSON/
http://www.w3schools.com/jquery/ajax_getjson.asp

 

jQuery.getJSON( url [, data ] [, success(data, textStatus, jqXHR) ] )Returns: jqXHR

 

$.getJSON('http://yoururl?callback=?', function(data){alert(data)});

 

var jqxhr = $.getJSON( "example.json", function() {console.log( "success" );})
             .done(function() { console.log( "second success" ); })
             .fail(function() { console.log( "error" ); })
             .always(function() { console.log( "complete" );
             });
             // perform other work here ...
             // Set another completion function for the request abovejqxhr.complete(function() { console.log( "second complete" ); });

 

jqxhr.complete(function() { console.log( "second complete" ); });

 

 

getScript() 메소드는  AJAX HTTP GET 요청을 이용하여 javascript를 실행한다.

 

http://api.jquery.com/jQuery.getScript/

 

jQuery.getScript( url [, success(script, textStatus, jqXHR) ] )Returns: jqXHR

 

$.getScript("demo_ajax_script.js");

 

$.getScript("ajax/test.js", function(data, textStatus, jqxhr) {  
                     console.log(data); //data returned  
                     console.log(textStatus); //success  
                     console.log(jqxhr.status); //200  
                     console.log('Load was performed.');});

 

$.getScript("ajax/test.js").done(function(script, textStatus) { 
                                    console.log( textStatus );})
                           .fail(function(jqxhr, settings, exception) { 
                                    $( "div.log" ).text( "Triggered ajaxError handler." );
                           });

 

 

 

 

반응형
반응형

단지 행복해지려고만 한다면 쉽게 행복해질 수 있다.
그러나 우리는 다른 사람들보다 더 행복하게 되기를 바란다.
남들보다 행복하게 되는 것은 항상 어려운 일이다.
왜냐면 우리는 다른 사람들이
실제보다 더 행복하다고 믿기 때문이다.
-몽테스키외

 

행복도 기술입니다.
연습하는 만큼 행복해질 수 있습니다.
행복을 위한 핵심 키워드 중 하나는
‘남과 비교하지 말라’입니다.
알베르 까뮈는 ‘행복하려면
남들에 대해 지나친 관심을 갖는 것은 금물이다.’고 말했습니다.

 

반응형
반응형

맛있는 커피를 마실 때
난 행복하다

혀가 있다는 것은
내가 살아 있다는 것
온몸이 있다는 것

눈이 있다는 것은
내가 살아 있다는 것
온몸이 있다는 것

그대 있어
이 세상 살아야 할 이유 되거늘


- 이재향의《사랑으로 산다는 것은》에 실린 시 <사는 이유> 중에서 -


* 어떤 시인에게는
커피 한 잔이 '사는 이유'가 되기도 합니다.
저도 아침 점심 하루에 두 번, 맛있는 커피를 마시며
온 몸이 '살아있음'과 오늘을 '사는 이유'를 발견합니다.
하루 중 가장 행복한 시간이기도 합니다.
오로지 맛있는 커피 한 잔에 그날
하루의 행복이 담겨 있습니다.

반응형

'생활의 발견 > 아침편지' 카테고리의 다른 글

비움과 채움, 채움과 비움  (0) 2013.07.31
신문배달 10계명  (0) 2013.07.30
엉겅퀴 노래  (0) 2013.07.27
당신의 몸에서는 어떤 향이 나나요?  (0) 2013.07.26
아들이 아버지를 극복하다  (0) 2013.07.25
반응형
들꽃이거든 엉겅퀴이리라
수없이 밟히고 베인 자리마다
돋은 가시를 보리라
하나의 사랑이 꽃이기까지
우리는 얼마나 잃고 또 떠나야 하는지
누군가 또 잃고 떠나 앓는 가슴 있거든
그 가슴 속 보랏빛 꽃으로 맺히리라


- 복효근의 시 《엉겅퀴 노래》중에서 -


* 짐짓 돋보이려고 하진 않아도
가시처럼 저절로 돋보이는 것들이 있습니다.
삶의 정답을 말하거나 답변하기에 난처한 일도
아주 많습니다. 더 이상 채울 수 없는 꽉 찬 물병이기보단,
더 아름다운 것으로 채울 수 있는 빈 병이기를 원합니다.
우리들의 삶에는 너무도 많은 사람들의 땀과 눈물
그리고 희생이 뒷받침했음을 잊어선
아니 되겠습니다.

 

반응형

'생활의 발견 > 아침편지' 카테고리의 다른 글

신문배달 10계명  (0) 2013.07.30
커피 한 잔의 행복  (0) 2013.07.29
당신의 몸에서는 어떤 향이 나나요?  (0) 2013.07.26
아들이 아버지를 극복하다  (0) 2013.07.25
코앞에 두고도...  (0) 2013.07.24
반응형
How does Mural.ly work?

https://mural.ly/

 

Google Docs for visual people

The easiest way for creative teams to think, imagine and discuss their ideas.

 

 

.

반응형
반응형
10 Best jQuery Plugins to Create Dynamic Layouts

 

pintrest 같은. 그리드. Grid

 

 

SuperScrollorama

SuperScrollorama

SuperScrollorama is a popular jQuery plugin for creating supercool scrolling and animation, powered by TweenMax and the Greensock Tweening Engine. This is a powerful tool, and with great power comes great responsibility. Use wisely. A little subtlety can go a long way.

Scrolldeck

Scrolldeck

Scrolldeck is a jQuery plugin for making scrolling presentation decks.

Shapeshift

Shapeshift

Shapeshift is an amazing jQuery plugin which creates a column based grid system that allows drag and drop even between multiple containers.

jQuery Nested

jQuery-Nested

jQuery Nested plugin is for a gap free, multi column grid layout experience.

Freetile

Freetile

Freetile is a plugin for jQuery that enables the organization of webpage content in an efficient, dynamic and responsive layout. It can be applied to a container element and it will attempt to arrange it’s children in a layout that makes optimal use of screen space, by “packing” them in a tight arrangement.

Gridster

Gridster

Gridster is a jQuery plugin that allows building intuitive drag-able layouts from elements spanning multiple columns.

Masonry

Masonry

Masonry is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall. You’ve probably seen it in use all over the Internet.

Stellar

Stellar

With Stellar, parallax has never been so easier. Precisely align elements and backgrounds. Add some simple data attributes to your markup, run $.stellar() – that’s all you need to get started.

PageSlide

PageSlide

PageSlide is a jQuery plugin, by Scott Robbin, which slides a webpage over to reveal an additional interaction pane.

jQuery Full Content

jQuery-Full-Content

This is a nice jQuery plugin for presentation style layout. It will dynamically position a container within the width and height of the browser window, and will smoothly scroll between each container.

반응형

+ Recent posts