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


Groups > comp.lang.javascript > #20107

Re: .submit(....) problem

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: .submit(....) problem
Date 2013-06-01 21:11 +0000
Organization A noiseless patient Spider
Message-ID <kodo1n$iff$1@dont-email.me> (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, 01 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 probably falls over because your server starts sending the new page 
before it has finished assembling it - as soon as the browser gets part 
of the new page, it clears out the old one and starts to display what 
it's received so far of the new one.

>     Now, serendipitously,  by using gzip (i.e., mod_deflate) in my
>     Apache
> Server, this *does now* happen.

That's probably because using compressed pages, your server doesn't start 
the compression until the whole page/file is prepared, so it doesn't send 
the page until it's been fully created.

The more complete solution in your server side script might be not to 
send any non-header content until you have finished preparing the page.

-- 
Denis McMahon, denismfmcmahon@gmail.com

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