My Setup
function ajaxLoadSth(value, attribute) {
$.post( url, value, function(response) {
// interpreting the response
var foobar = $('#foo') + $('.bar').find('.sth');
// print interpretation into DOM
container.append(foobar);
// do some funky stuff
doSomeFooWithDom();
checkSomeBarHere();
updateSomeValuesThere();
// now call the function again with different values
// THIS IS WHAT MY QUESTION REFERS TO **************
if ( true ) {
ajaxLoadSth(newValue, newAttribute);
}
});
}
function ajaxLoadSth(value, attribut