tmp.csp
<!DOCTYPE html>
<html>
<head>
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
<link rel='stylesheet type=text/css href=tmp.css' />
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
$(function(){
var mes = 'Hello, server!';
$.post('tmp1.csp', {mesag:mes}, function(data) { alert(data)});
});
</script>
</head>
<body>
</body>
</html>
tmp1.csp
#($g(%request.Data("mesag",1)))#
Все работает...
Но при твоем подходе
<!DOCTYPE html>
<html>
<head>
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
<link rel='stylesheet type=text/css href=tmp.css' />
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
var mes = 'Hello, server!';
$.post('tmp1.csp', {mesag:mes}, function(data) { alert(data)});
</script>
</head>
<body>
</body>
</html>
Выдается сообщение об ошибке - $ не определена.