This is a migrated thread and some comments may be shown as answers.

Event like pageinit from JQMobile

2 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Valery
Top achievements
Rank 1
Valery asked on 11 Jul 2012, 06:46 AM
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 Answers, 1 is accepted

Sort by
0
Valery
Top achievements
Rank 1
answered on 15 Aug 2012, 05:38 PM
Nobody know ? :( 
0
Richard
Top achievements
Rank 1
answered on 30 Aug 2012, 03:13 AM
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.
Tags
General Discussions
Asked by
Valery
Top achievements
Rank 1
Answers by
Valery
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Share this question
or