[FX.php List] Visual cue when processing a long, multi-record edit request?

Steve Winter steve at bluecrocodile.co.nz
Wed Oct 12 19:18:21 MDT 2005


Hey Kevin,

Thanks for the corrections ;-)

Cheers
Steve

> On 13/10/05 10:21 AM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:
> 
> > Joel,
> > 
> > Let us assume that the form is contained thus;
> >   <div id="editForm">
> >     ...your form...
> >   </div>
> > and the processing area thus;
> >   <div id="processingNow" style="display: none">
> >     ...we're processing your submission...
> >   </div>
> > 
> > In your validate form script (for want of anywhere better to put it),
> just
> > before you return true to enable to form to submit, add the following
> two
> > lines;
> >   document.getElementById(processingNow).style.display = '';
> >   document.getElementById(editForm).style.display = 'none';
> > 
> > Which should have the desired effect...not tested, written off the
> top of
> > my head, think I got it right... (also not sure how valid/cross
> platform
> > it is, but think it should be pretty okay that way too, at least for
> > 'modern' browsers)
> > 
> > Cheers
> > Steve
> 
> The first JS line should end: display = 'block';
> And when you grab an element by ID using getElementById, you need to
> quote
> the element ID (eg document.getElementById('processingNow'))
> 
> -- 
> Kevin Futter
> Webmaster, St. Bernard's College
> http://www.sbc.melb.catholic.edu.au/
> 
> 
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list




More information about the FX.php_List mailing list