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.

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

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


    Kicking squealing Gucci little piggy.

    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.

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

      So maybe the cheerleading gig doesn't seem so bad now, does it Ashleigh?

      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

        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.

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

        Ashley van Gerven wrote:

        BtnSubmit.Attributes.Add("onlick", "disableSubmit()");

        By the way, although that sounds like a good solution to prevent the user from licking the button more than once, 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. 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

        C T A 3 Replies Last reply
        0
        • A Alvaro Mendez

          Ashley van Gerven wrote:

          BtnSubmit.Attributes.Add("onlick", "disableSubmit()");

          By the way, although that sounds like a good solution to prevent the user from licking the button more than once, 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. 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

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

          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 L L 3 Replies 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.

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #7

            It might if you were developing a mac app. :D

            1 Reply Last reply
            0
            • B Bassam Abdul Baki

              Touch screen and virtual sex come to mind. :laugh:


              "I know which side I want to win regardless of how many wrongs they have to commit to achieve it." - Stan Shannon Web - Blog - RSS - Math - LinkedIn

              T Offline
              T Offline
              TheGreatAndPowerfulOz
              wrote on last edited by
              #8

              eeeeewwwww!!!:omg::wtf: take it to the bathroom! and to the SOAPbox

              Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

              1 Reply Last reply
              0
              • A Alvaro Mendez

                Ashley van Gerven wrote:

                BtnSubmit.Attributes.Add("onlick", "disableSubmit()");

                By the way, although that sounds like a good solution to prevent the user from licking the button more than once, 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. 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

                T Offline
                T Offline
                TheGreatAndPowerfulOz
                wrote on last edited by
                #9

                Alvaro Mendez wrote:

                stuck

                like in "A Christmas Story" with your tongue stuck to the flag pole?

                Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

                A 1 Reply Last reply
                0
                • A Alvaro Mendez

                  Ashley van Gerven wrote:

                  BtnSubmit.Attributes.Add("onlick", "disableSubmit()");

                  By the way, although that sounds like a good solution to prevent the user from licking the button more than once, 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. 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
                  #10

                  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 1 Reply Last reply
                  0
                  • T TheGreatAndPowerfulOz

                    Alvaro Mendez wrote:

                    stuck

                    like in "A Christmas Story" with your tongue stuck to the flag pole?

                    Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

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

                    ahz wrote:

                    like in "A Christmas Story" with your tongue stuck to the flag pole?

                    :-D That's a classic. 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

                    1 Reply Last reply
                    0
                    • L Lost User

                      So maybe the cheerleading gig doesn't seem so bad now, does it Ashleigh?

                      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
                      #12

                      :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 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.

                        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
                                          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