Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Clicking post button and then stop button on browser

Clicking post button and then stop button on browser

Scheduled Pinned Locked Moved Site Bugs / Suggestions
23 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Bradml

    Chris even though the majority of the time you won't fix this i know that in PHP I can check if the connection to the server was terminated. Does ASP have a similar feature?


    Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

    C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #14

    There is "IsClientConnected" available. So check that before actually posting the message? The problem there is that it's very unreliable. If the message has been submitted then there's a small and random window of opportunity to bail out.

    cheers, Chris Maunder

    CodeProject.com : C++ MVP

    B 1 Reply Last reply
    0
    • C Chris Maunder

      There is "IsClientConnected" available. So check that before actually posting the message? The problem there is that it's very unreliable. If the message has been submitted then there's a small and random window of opportunity to bail out.

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #15

      Well that could provide a small amount of protection, but if you were serious about it you could roll back on termination. But yeah it wouldn't take much to make a small check that would eliminate a small amount of it. Also one other thing, for Shogs CPhog do you provide him a API or does he just go through the normal process?


      Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

      N 1 Reply Last reply
      0
      • A A

        In otherwords it can't be fixed then?

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #16

        A***** wrote:

        In otherwords it can't be fixed then?

        man, you fix bugs... here, the behavior is normal (as Chris told). BTW, what do you think the "Modify" link exist for ? ;P


        [VisualCalc][Binary Guide updated! ][CommDialogs new! ] | [Forums Guidelines]

        1 Reply Last reply
        0
        • B Bradml

          Well that could provide a small amount of protection, but if you were serious about it you could roll back on termination. But yeah it wouldn't take much to make a small check that would eliminate a small amount of it. Also one other thing, for Shogs CPhog do you provide him a API or does he just go through the normal process?


          Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #17

          Bradml wrote:

          Also one other thing, for Shogs CPhog do you provide him a API or does he just go through the normal process?

          CPhog uses client side stuff - Chris hasn't given Shog any special API as far as I know :-)

          Regards, Nish


          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
          Currently working on C++/CLI in Action for Manning Publications. (*Sample chapter available online*)

          B 1 Reply Last reply
          0
          • A A

            In otherwords it can't be fixed then?

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #18

            A***** wrote:

            In otherwords it can't be fixed then?

            There's nothing to fix there, it's not a bug.

            Regards, Nish


            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
            Currently working on C++/CLI in Action for Manning Publications. (*Sample chapter available online*)

            1 Reply Last reply
            0
            • N Nish Nishant

              Bradml wrote:

              Also one other thing, for Shogs CPhog do you provide him a API or does he just go through the normal process?

              CPhog uses client side stuff - Chris hasn't given Shog any special API as far as I know :-)

              Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              Currently working on C++/CLI in Action for Manning Publications. (*Sample chapter available online*)

              B Offline
              B Offline
              Bradml
              wrote on last edited by
              #19

              Well that explains how sometimes the posts just hang....


              Brad Australian - bryce on "Problems with Code Project" *sigh* Maunder's been coding again...

              1 Reply Last reply
              0
              • B Bradml

                Chris even though the majority of the time you won't fix this i know that in PHP I can check if the connection to the server was terminated. Does ASP have a similar feature?


                Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

                P Offline
                P Offline
                peterchen
                wrote on last edited by
                #20

                sending is usually much faster than retriving the response page. so it LOOKS as it is still posting, but in reality, the message is already posted.


                Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                Linkify!|Fold With Us!

                B 2 Replies Last reply
                0
                • P peterchen

                  sending is usually much faster than retriving the response page. so it LOOKS as it is still posting, but in reality, the message is already posted.


                  Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                  We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                  Linkify!|Fold With Us!

                  B Offline
                  B Offline
                  Bradml
                  wrote on last edited by
                  #21

                  Yep. One benefit a custom gateway would provide is much lower loading times for the client.


                  Brad Australian - Captain See Sharp on "Religion" any half intelligent person can come to the conclusion that pink unicorns do not exist.

                  1 Reply Last reply
                  0
                  • P peterchen

                    sending is usually much faster than retriving the response page. so it LOOKS as it is still posting, but in reality, the message is already posted.


                    Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                    We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                    Linkify!|Fold With Us!

                    B Offline
                    B Offline
                    Bradml
                    wrote on last edited by
                    #22

                    Oh sorry, for some reason I thought you replied to the question about a custom API for Shog. But that is not what this is about, this is about pressing the stop button. When you press that it will terminate the connection to the server and so Chris can assume the post is no longer required.


                    Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

                    P 1 Reply Last reply
                    0
                    • B Bradml

                      Oh sorry, for some reason I thought you replied to the question about a custom API for Shog. But that is not what this is about, this is about pressing the stop button. When you press that it will terminate the connection to the server and so Chris can assume the post is no longer required.


                      Brad Australian - Bradml on "MVP Status" If this was posted in a programming board please rate my answer

                      P Offline
                      P Offline
                      peterchen
                      wrote on last edited by
                      #23

                      What I meant is that when you press the "STOP" button, the message was already sent to the server, the server redirected you to your new post, but the browser is still busy fetching them.


                      Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                      Linkify!|Fold With Us!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups