Date:  12/08/2006 08:24:39 AM Msg ID:  003247
From:  Alex Taylor Thread:  003247
Subject:  JS Submit - functions out of order?
I'm wondering why this doesn't work - theres just a long pause while the submit takes place - and how can I get the desired effect?  An input button calls this onClick.

function doSaveDocument()
{
    toggleBox('waitingbox', 'on');
    document.bgform.submit();
    toggleBox('waitingbox', 'off');
}