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. The Lounge
  3. WTFOTD

WTFOTD

Scheduled Pinned Locked Moved The Lounge
databasecsharpasp-netmysqlsql-server
33 Posts 16 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.
  • A Ashley van Gerven

    ok this is mine... I'm embarrassed to post this but here goes: BtnSubmit.Attributes.Add("onlick", "disableSubmit()"); I'm wondering why on hell it's not disabling the button... when I suddenly spot my typo :doh: DOH! Somehow I don't think the button is going to be licked any time soon! :laugh:

    "For fifty bucks I'd put my face in their soup and blow." - George Costanza

    ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

    G Offline
    G Offline
    gus_br
    wrote on last edited by
    #13

    what the hell does WTFOTD mean? please, add a reference to it: http://www.urbandictionary.com/define.php?term=WTFOTD[^]

    S A 2 Replies Last reply
    0
    • A Ashley van Gerven

      Well I'm actually showing a message next to the disabled button. And the thought had crossed my mind to include a 'try again' link to re-enable the button. But by the time they click stop, the request is already being processed, so kindof a catch 22.

      "For fifty bucks I'd put my face in their soup and blow." - George Costanza

      ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

      A Offline
      A Offline
      Alvaro Mendez
      wrote on last edited by
      #14

      Ashley van Gerven wrote:

      Well I'm actually showing a message next to the disabled button. And the thought had crossed my mind to include a 'try again' link to re-enable the button. But by the time they click stop, the request is already being processed, so kindof a catch 22.

      I was thinking that one way to work around the possibility of the user clicking Stop may be to call setTimeout to reenable the Submit button after say, 15 seconds or so, depending on how long the round trip can take. I've seen some sites immediately redirect the user to a "Please wait" page which does the actual postback, but that may be overkill for your site. Regards, Alvaro


      If [God] knows what we are going to do then we have no free will and are just characters in a play written by him. Without free will, morality for humans makes no sense. Without free will and morality, any sort of punishment or reward system loses any justification. Heaven and hell would be places where [God] could watch the souls he created, predestined just for eternal happiness or agony. - Mark Thomas

      A 1 Reply Last reply
      0
      • G gus_br

        what the hell does WTFOTD mean? please, add a reference to it: http://www.urbandictionary.com/define.php?term=WTFOTD[^]

        S Offline
        S Offline
        S Douglas
        wrote on last edited by
        #15

        pontonet wrote:

        what the hell does WTFOTD mean

        WTF + Of The Day ;)


        I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

        1 Reply Last reply
        0
        • C Chris Maunder

          Alvaro Mendez wrote:

          the problem is that if the user clicks the Stop button on the browser before the page comes back, the button stays disabled and he's stuck.

          Stuck, like when you like a frozen railing kinda stuck?

          cheers, Chris Maunder

          CodeProject.com : C++ MVP

          A Offline
          A Offline
          Alvaro Mendez
          wrote on last edited by
          #16

          Chris Maunder wrote:

          Stuck, like when you like a frozen railing kinda stuck?

          Yeah, or like those people at the movies that walk into quicksand. :)


          If [God] knows what we are going to do then we have no free will and are just characters in a play written by him. Without free will, morality for humans makes no sense. Without free will and morality, any sort of punishment or reward system loses any justification. Heaven and hell would be places where [God] could watch the souls he created, predestined just for eternal happiness or agony. - Mark Thomas

          1 Reply Last reply
          0
          • G gus_br

            what the hell does WTFOTD mean? please, add a reference to it: http://www.urbandictionary.com/define.php?term=WTFOTD[^]

            A Offline
            A Offline
            Ashley van Gerven
            wrote on last edited by
            #17

            WTF Of The Day in coding, a WTF is a really obvious mistake, or really poor logic. I think this is the site that made the term famous: http://thedailywtf.com/[^]

            "For fifty bucks I'd put my face in their soup and blow." - George Costanza

            ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

            G 1 Reply Last reply
            0
            • L Lost User

              Would of made a good post in the new "Subtle Bugs" forum. :)


              Kicking squealing Gucci little piggy.

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #18

              My most recent, favourite subtle bug is: foreach (string s in myStrings); { col.Add(s); } and wondering why my collection never gets populated.

              C 1 Reply Last reply
              0
              • A Alvaro Mendez

                Ashley van Gerven wrote:

                Well I'm actually showing a message next to the disabled button. And the thought had crossed my mind to include a 'try again' link to re-enable the button. But by the time they click stop, the request is already being processed, so kindof a catch 22.

                I was thinking that one way to work around the possibility of the user clicking Stop may be to call setTimeout to reenable the Submit button after say, 15 seconds or so, depending on how long the round trip can take. I've seen some sites immediately redirect the user to a "Please wait" page which does the actual postback, but that may be overkill for your site. Regards, Alvaro


                If [God] knows what we are going to do then we have no free will and are just characters in a play written by him. Without free will, morality for humans makes no sense. Without free will and morality, any sort of punishment or reward system loses any justification. Heaven and hell would be places where [God] could watch the souls he created, predestined just for eternal happiness or agony. - Mark Thomas

                A Offline
                A Offline
                Ashley van Gerven
                wrote on last edited by
                #19

                Both good ideas - thanks. Another idea that just sprang to mind is to just show a confirm() box on the second click saying something like 'you already submitted this form - do you want to re-submit?'.

                "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                1 Reply Last reply
                0
                • A Ashley van Gerven

                  ok this is mine... I'm embarrassed to post this but here goes: BtnSubmit.Attributes.Add("onlick", "disableSubmit()"); I'm wondering why on hell it's not disabling the button... when I suddenly spot my typo :doh: DOH! Somehow I don't think the button is going to be licked any time soon! :laugh:

                  "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                  ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                  V Offline
                  V Offline
                  Vivi Chellappa
                  wrote on last edited by
                  #20

                  Ashley van Gerven wrote:

                  Somehow I don't think the button is going to be licked any time soon!

                  Didn't Steve Jobs say, "We made the buttons look so good you would want to lick them"? So, the Mac has the command "onlick"!;P

                  A 1 Reply Last reply
                  0
                  • B Brady Kelly

                    My most recent, favourite subtle bug is: foreach (string s in myStrings); { col.Add(s); } and wondering why my collection never gets populated.

                    C Offline
                    C Offline
                    Christian Wulff
                    wrote on last edited by
                    #21

                    But that should result in a compiler error because the variable s is not known outside the loop, shouldn't it?

                    B 1 Reply Last reply
                    0
                    • A Ashley van Gerven

                      ok this is mine... I'm embarrassed to post this but here goes: BtnSubmit.Attributes.Add("onlick", "disableSubmit()"); I'm wondering why on hell it's not disabling the button... when I suddenly spot my typo :doh: DOH! Somehow I don't think the button is going to be licked any time soon! :laugh:

                      "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                      ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                      M Offline
                      M Offline
                      Marc Clifton
                      wrote on last edited by
                      #22

                      Ah, the joys of string based attribute programming, and the reason why people hate declarative programming--no compile time syntax checking! Marc

                      Thyme In The Country

                      People are just notoriously impossible. --DavidCrow
                      There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                      People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                      A 1 Reply Last reply
                      0
                      • C Chris Maunder

                        Alvaro Mendez wrote:

                        the problem is that if the user clicks the Stop button on the browser before the page comes back, the button stays disabled and he's stuck.

                        Stuck, like when you like a frozen railing kinda stuck?

                        cheers, Chris Maunder

                        CodeProject.com : C++ MVP

                        L Offline
                        L Offline
                        led mike
                        wrote on last edited by
                        #23

                        Chris Maunder wrote:

                        like when you like a frozen railing kinda stuck?

                        did you mean "click" a frozen railing?

                        led mike

                        1 Reply Last reply
                        0
                        • A Ashley van Gerven

                          :laugh: Either that or lower my rates down to junior level :sigh:

                          "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                          ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #24

                          Ashley van Gerven wrote:

                          :laugh: Either that or lower my rates down to junior level :sigh:

                          I'd go with the cheerleading if I were you, you might pick up a sugar daddy and never have to work again.

                          Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                          1 Reply Last reply
                          0
                          • C Chris Maunder

                            Alvaro Mendez wrote:

                            the problem is that if the user clicks the Stop button on the browser before the page comes back, the button stays disabled and he's stuck.

                            Stuck, like when you like a frozen railing kinda stuck?

                            cheers, Chris Maunder

                            CodeProject.com : C++ MVP

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #25

                            Chris Maunder wrote:

                            Stuck, like when you like a frozen railing kinda stuck?

                            For the second like do you really mean lick? It's people like (not lick) you that are an embarassment to Australia and it's spelling. Or at least to me, when I can no longer take the moral high ground over all them Yanks and Canucks thanks to you. The beer drinking was bad enough. You being capable of 1 has left people like me having to drink 13 (like tonight, when the missus told me it better be a quite one with me in bed early (does 02:45 count)) to keep the Aussie average up.

                            Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                            A 1 Reply Last reply
                            0
                            • A Ashley van Gerven

                              WTF Of The Day in coding, a WTF is a really obvious mistake, or really poor logic. I think this is the site that made the term famous: http://thedailywtf.com/[^]

                              "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                              ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                              G Offline
                              G Offline
                              Gary Wheeler
                              wrote on last edited by
                              #26

                              That's the site-that-shall-not-be-linked. The guy who runs it has a poor opinion of the Code Project, and isn't shy about expressing it.


                              Software Zen: delete this;

                              A 1 Reply Last reply
                              0
                              • L Lost User

                                Chris Maunder wrote:

                                Stuck, like when you like a frozen railing kinda stuck?

                                For the second like do you really mean lick? It's people like (not lick) you that are an embarassment to Australia and it's spelling. Or at least to me, when I can no longer take the moral high ground over all them Yanks and Canucks thanks to you. The beer drinking was bad enough. You being capable of 1 has left people like me having to drink 13 (like tonight, when the missus told me it better be a quite one with me in bed early (does 02:45 count)) to keep the Aussie average up.

                                Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                                A Offline
                                A Offline
                                Ashley van Gerven
                                wrote on last edited by
                                #27

                                Michael Martin wrote:

                                it better be a quite one

                                When you say quite do you really mean quiet? Aaaahhh the irony ;P Reminds me of a Black Adder quote: Black Adder: Baldric, you do know what irony is don't you? Baldric: Yeah, it's like goldy and bronzy except made of iron :laugh:

                                "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                                ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                                1 Reply Last reply
                                0
                                • G Gary Wheeler

                                  That's the site-that-shall-not-be-linked. The guy who runs it has a poor opinion of the Code Project, and isn't shy about expressing it.


                                  Software Zen: delete this;

                                  A Offline
                                  A Offline
                                  Ashley van Gerven
                                  wrote on last edited by
                                  #28

                                  OK. Now you mention it I remember some controversy a few months ago about something on that site about CP.

                                  "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                                  ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                                  G 1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    Ah, the joys of string based attribute programming, and the reason why people hate declarative programming--no compile time syntax checking! Marc

                                    Thyme In The Country

                                    People are just notoriously impossible. --DavidCrow
                                    There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                                    People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                                    A Offline
                                    A Offline
                                    Ashley van Gerven
                                    wrote on last edited by
                                    #29

                                    Especially database columns, which I'm sure many people have issues with - e.g. row["fName"], which still compiles when someone renames the column to FirstName; which I sometimes avoid by doing this: row[db.Schema.FirstName].

                                    "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                                    ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                                    1 Reply Last reply
                                    0
                                    • A Ashley van Gerven

                                      OK. Now you mention it I remember some controversy a few months ago about something on that site about CP.

                                      "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                                      ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                                      G Offline
                                      G Offline
                                      Gary Wheeler
                                      wrote on last edited by
                                      #30

                                      I like reading www.dailywtf.com every so often, but I did find Alex's comments ill-mannered.


                                      Software Zen: delete this;

                                      1 Reply Last reply
                                      0
                                      • V Vivi Chellappa

                                        Ashley van Gerven wrote:

                                        Somehow I don't think the button is going to be licked any time soon!

                                        Didn't Steve Jobs say, "We made the buttons look so good you would want to lick them"? So, the Mac has the command "onlick"!;P

                                        A Offline
                                        A Offline
                                        Ashley van Gerven
                                        wrote on last edited by
                                        #31

                                        Cool... so I'll leave my code intact, and all there is to do is eliminate every Windows PC from the world :sigh:

                                        "For fifty bucks I'd put my face in their soup and blow." - George Costanza

                                        ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.

                                        1 Reply Last reply
                                        0
                                        • C Christian Wulff

                                          But that should result in a compiler error because the variable s is not known outside the loop, shouldn't it?

                                          B Offline
                                          B Offline
                                          Brady Kelly
                                          wrote on last edited by
                                          #32

                                          Yes, I'm sorry my Firefox IDE didn't pick that up. Just an example anyway.

                                          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