What's better of this two options:
1. $.post( '/ajax/action', function(data) { doResult(); } );
*This option has to receptors: ajax.php and action.php*
or
2. $.post( '/action', { typerequest: 'ajax' }, function (data) { doResult(); }
*This option has only 1 receptor: action.php (if typerequest exists, returns ajax result)*
Form without ajax looks like:
<form action="/action">