Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. [Suggestion] blocking actions on a stale page
Qt 6.11 is out! See what's new in the release blog

[Suggestion] blocking actions on a stale page

Scheduled Pinned Locked Moved Qt.io webservices
6 Posts 3 Posters 3.5k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    scenario:

    1. Open a thread in FF
    2. Open same thread in another tab in FF
    3. Click on rate this up on tab1 or add a tag
    4. Go to tab2, the rating is not updated, so click again on rate this up (i.e., now in tab2) or add another tag

    The tags update independently on refresh, but the rating gets undone.
    I'd say in step4, since the page is stale now, it should not allow any action ...

    Does that sound ok?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      chetankjain, not sure it will be ok. I think that maybe small improvement for rateup button is needed. For now it just sends to server command to change rating. And server decides should it be +1 or -1. I suggest to divide +1 and -1 at client and check them at server. If two +1 commands appeared at server then simply ignore one and send back old answer.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stukdev
        wrote on last edited by
        #3

        Maybe change a message 'Rate this up' with a message 'you have just rate this' or something similar.

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          i'm ok with Denis' suggestion

          stuk, if you observe the behavior .. its like a toggle between rate up and rate back down.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stukdev
            wrote on last edited by
            #5

            I see, but maybe your 'problem' is rare. If somebody try to vote the same content in two tabs is crafty :P
            A message on the second tabs alert this, if the user want to change...reload the page :)

            [quote author="chetankjain" date="1291282080"]i'm ok with Denis' suggestion

            stuk, if you observe the behavior .. its like a toggle between rate up and rate back down. [/quote]

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mgran
              wrote on last edited by
              #6

              It's indeed crafty and it doesn't result in a double up rating. I'm not sure it's worth spending hours on.

              Project Manager - Qt Development Frameworks

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved