Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #20116

Re: .submit(....) problem

From JJ <duh@nah.meh>
Newsgroups comp.lang.javascript
Subject Re: .submit(....) problem
Date 2013-06-02 09:12 +0700
Organization ?
Message-ID <2ddfmgkf3o7r.19rgltz3ver72.dlg@40tude.net> (permalink)
References (1 earlier) <XnsA1D1F205F7AB0eejj99@194.109.133.133> <b0stobFtsg1U1@mid.individual.net> <b0tcrbF24eiU1@mid.individual.net> <10nfa5ogfbi9n$.1bfhtk130g1fr.dlg@40tude.net> <b0uh19F9n1kU1@mid.individual.net>

Show all headers | View raw


On Sat, 1 Jun 2013 09:07:17 -0600, Mel Smith wrote:
>     My original problem (very probably phrased crappily) was to leave the 
> client's page 'frozen' at the point-in-time of submission of <form> info 
> until the reception of the *new* page. This new page can take from < one 
> second to sometimes up to ten seconds for my server app to do all the work 
> of building the response page, and sending it. (the page can sometimes be up 
> to 382K in size). So, while this work is being carried out, I wish the 
> client's view of the original page be 'frozen' at what my JS code left it at 
> just prior to the .submit sequence.

The common method is to add an absolute/fixed positioned DIV that cover the
entire page view (at the topmost z-index). The DIV must have a background
color or image, and be make translucent using the opacity style (e.g.:
opacity=0.5).

Just show it before submitting the form, then hide it after the result has
been received. So you'll need to have either onload or onreadystatechange
handler, depending on which method you're using (IFRAME and/or AJAX), in
order to be notified when the result has been completely received. Hint:
check the readyState property.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

.submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-05-31 14:21 -0600
  Re: .submit(....) problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-05-31 23:47 +0200
    Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-05-31 18:32 -0600
      Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-05-31 22:49 -0600
        Re: .submit(....) problem JJ <duh@nah.meh> - 2013-06-01 14:18 +0700
          Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-01 09:07 -0600
            Re: .submit(....) problem Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-01 21:11 +0000
              Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-01 16:50 -0600
                Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-01 17:10 -0600
                Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-01 17:27 -0600
                Re: .submit(....) problem Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-02 01:49 +0000
            Re: .submit(....) problem JJ <duh@nah.meh> - 2013-06-02 09:12 +0700
              Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-01 22:47 -0600
      Re: .submit(....) problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-01 12:02 +0200
        Re: .submit(....) problem "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-01 08:45 -0600

csiph-web