Execute all handlers and behaviors attached to the matched elements

.trigger( eventType [, extraParameters ] )





http://hangaebal.blogspot.kr/2014/07/jquery-execute-handler-trigger.html

클릭으로도 동작해서 테스트시에도 용이함

$(function() {      
      //Enable swiping...
      $("#test").swipe( {
        //Generic swipe handler for all directions
        swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
          $(this).text("You swiped " + direction );  
        },
        //Default is 75px, set to 0 for demo so any distance triggers swipe
         threshold:0
      });
    });
http://labs.rampinteractive.co.uk/touchSwipe/demos/





http://hangaebal.blogspot.kr/2014/07/jquery-plugin-touchswipe.html


The .find() and .children() methods are similar, except that the latter only travels a single level down the DOM tree.

http://api.jquery.com/find/




http://hangaebal.blogspot.kr/2014/07/jquery-find-vs-children.html

jQuery( .selector ).on( "swipe", function( event ) { ... } )
jQuery( .selector ).on( "swipeleft", function( event ) { ... } )
jQuery( .selector ).on( "swiperight", function( event ) { ... } )

http://api.jquerymobile.com/swipe/






http://hangaebal.blogspot.kr/2014/07/jquery-jquery-mobile-swipe-event.html

jQuery UI listens to mouse events not touch events
- jQuery UI는 마우스 이벤트로 설정되어 터치 이벤트로는 동작하지 않는다.



- jQuery UI touch mobile event



다운로드 :
http://touchpunch.furf.com/



http://hangaebal.blogspot.kr/2014/06/jquery-draggable-mobile-jqueryuitouch.html


.trigger( eventType [, extraParameters ] );



- jQuery 이벤트 호출

- jQuery 이벤트 발생



http://hangaebal.blogspot.kr/2014/06/jquery-click.html


http://api.jquery.com/trigger/

'Blogger 이사' 카테고리의 다른 글

[JavaScript] key, value Array Sort  (0) 2016.01.14
[Javascript] key value Array  (0) 2016.01.14
[Javascript] window.load vs document.ready  (0) 2016.01.14
[SQLite] Web SQL INSERT OR ...  (0) 2016.01.14
[SQLite] Web SQL 여러줄 삽입  (0) 2016.01.14
 $(document).ready(function() {

 // executes when HTML-Document is loaded and DOM is ready
 alert("document is ready");
});


$(window).load(function() {
 // executes when complete page is fully loaded, including all frames, objects and images
 alert("window is loaded");
});



-  window.load vs document.ready 

- window.load document.ready  차이점

- window.load document.ready  비교



http://hangaebal.blogspot.kr/2014/06/windowload-vs-documentready.html

http://stackoverflow.com/questions/8396407/jquery-what-are-differences-between-document-ready-and-window-load

'Blogger 이사' 카테고리의 다른 글

[JavaScript] key, value Array Sort  (0) 2016.01.14
[Javascript] key value Array  (0) 2016.01.14
[jQuery] jQuery 이벤트 호출  (0) 2016.01.14
[SQLite] Web SQL INSERT OR ...  (0) 2016.01.14
[SQLite] Web SQL 여러줄 삽입  (0) 2016.01.14

+ Recent posts