So, I have a code that presents a gui for the users to set up a for loop. What I want is that when the user runs the loop... the div greys out the loop runs and displays its current indexes the loop finishes and the div returns
I can't figure out how to accomplish these things in sequence with the reporting. It appears as if the code runs too fast for the effects to kick in. I have tried callbacks and queue.
Any suggestions?
UPDATE: I caved in and am using the setTimeout. Any reason why this wouldn't work?
setTimeout(function(){ // \
$('div[id="'+loopid+'"]').children('.forloopcontent').children('.main_item').each( function(){ // \
if ($(this).attr("type")=="3") // \
{ id=$(this).children('.subequationblock').attr("id"); window[id].Solve_Equation(window[id].Format_name+"="+window[id].Format_equation); } // \
if ($(this).attr("type")=="6") { newloopid=$(this).children('.forloop').attr("id"); PrepLoopEquations(newloopid, UpdateForLoops(newloopid));} // \
if ($(this).attr("type")=="7") { newloopid=$(this).children('.whileloop').attr("id"); PrepLoopEquations(newloopid, UpdateWhileLoop(newloopid));} // \
if ($(this).attr("type")=="8") { UpdateIfElse($(this).children('.ifelse').attr("id"));} // \
}); // \
}, 1000);