Ajax jquery síncrono éxito de devolución de llamada

Tengo esta función que hace una llamada ajax. Estoy describiendo el problema en la última parte de los comentarios de código.

    function doop(){
            var that = this;
            var theold = "theold";
            var thenew = "thenew";

            $.ajax({
                    url: 'doop.php',
                    type: 'POST',
                    data: 'before=' + theold + '&after=' + thenew,
                    success: function(resp) {
                            if(resp == 1) {
                                    $(that).siblings('.theold').html(thenew);
                            }
                    }
            });

            // I have some code here (out of the ajax) that **further** changes 
            // the .theold's html beyond what it was changed inside ajax success
            // but the change depends on whether the resp (inside the success 
            // function) returned 1 or not, so this code out here depends on the ajax
            // so it looks like I have to turn this ajax call into a sync ajax

            return false;
    }

Según el problema descrito en los comentarios del código, ¿qué cambios son mejores para esta situación?

Respuestas a la pregunta(3)

Su respuesta a la pregunta