Sounds like a weird question, but say I have something like this:
$.post( '/myajax.php', { 'param1': value1, 'param2': value2 }, function( data, status ) { if( status == 'success' ) { $('#someid').html( data ); } }, 'html' );
While myajax.php is doing whatever it needs to do, it decides that it does not need to make any changes to #someid. If it just returns, the someid element is blanked, but I want to leave it alone. How can the php query return in such a way that status != 'success'?
Wouldn’t it be simpler to check on the data returned?