How can I get the id of the current view?
So for the code example below, it should alert "page_introduction".
Example:
<div data-role="view" data-layout="app" data-title="My App" id="page_introduction" data-transition="fade">
content
</div>
<script>
alert("You are currently watching "+app.view.id());
</script>
So for the code example below, it should alert "page_introduction".
Example:
<div data-role="view" data-layout="app" data-title="My App" id="page_introduction" data-transition="fade">
content
</div>
<script>
alert("You are currently watching "+app.view.id());
</script>