Event like pageinit from JQMobile

3 posts, 0 answers
  1. Valery
    Valery avatar
    3 posts
    Member since:
    Jul 2012

    Posted 11 Jul 2012 Link to this post

    Hello, dear Support

    Let me ask you - how to handle event, like pageinit in JQMobile ? In general I need make someth like this: 
    $('#div').live('pageinit', function() {
     alert ('event pageinit');
    },400);
    
    
  2. Valery
    Valery avatar
    3 posts
    Member since:
    Jul 2012

    Posted 15 Aug 2012 Link to this post

    Nobody know ? :( 
  3. Richard
    Richard avatar
    7 posts
    Member since:
    Mar 2012

    Posted 29 Aug 2012 Link to this post

    Took me a while to find it, but Kendo actually handles that really nicely.

            <div data-role="view" data-layout="default" id="home" data-init="initHome">

    The "data-init" calls whatever javascript function you put into it.
Back to Top