var
productviewed =
function
(view) {
alert(
"viewed"
);
};
$(document).ready(
function
() {
$(
"#autoloan"
).bind(
"show"
, productviewed);
});
<div data-role="view" id="autoloan" data-title="Auto Loan" data-transition="slide" data-layout="message" >
...
</div>
I'm trying to hook to the show event of the view by doing the above. However the alert dialog seems to never get called.
Have I done something incorrectly?