I have 5 pages - for ease lets say:
When I load each indivi
If it is an ajax request to this page, the script should be written into body or else it doen't work at all for ajax.
<!DOCTYPE html>
<html>
<head>
..........
</head>
<body>
<div data-role="page" data-control-title="Detail" id="self_edit_page" data-theme="e">
...........
</div>
<script type="text/javascript" language="javascript" >
$('#self_edit_page').bind("pagebeforeshow",function(event)
.......
</script>
</div>
</body>
</html>