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

mobile view

2 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manuel Henry II
Top achievements
Rank 1
Manuel Henry II asked on 24 Apr 2013, 11:12 AM
It doesnt work. even the alert function isnt called. im using safari.

<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
 <link href="css/kendo.mobile.all.min.css" rel="stylesheet" />
 <script src="js/jquery.min.js"></script>
  <script src="js/kendo.all.min.js"></script>
 
</head>
 
<body>
 
<div data-role="view" id="foo">
    <a href="#protected" data-role="button">Go to protected</a>
</div>
 
<div data-role="view" id="protected" data-before-show="redirectBack">
    I am a protected view
</div>
 
<script>
    var app = new kendo.mobile.Application();
    function redirectBack(e) {
        alert('s');
        e.preventDefault();
        app.navigate("#foo");
    }
</script>
</body>
</html>

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 24 Apr 2013, 11:33 AM
Hello Manuel,

I tested the code you provided in this jsbin, and it seems to be working. What am I missing?

Greetings,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Manuel Henry II
Top achievements
Rank 1
answered on 24 Apr 2013, 02:43 PM
the problem was i was using 1.90 jquery plugin.
Tags
General Discussions
Asked by
Manuel Henry II
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Manuel Henry II
Top achievements
Rank 1
Share this question
or