Disabling Buttons?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dr John Stockton

    #16
    Re: Disabling Buttons?

    JRS: In article <brqkv8$fgq$1@s parta.btinterne t.com>, seen in
    news:comp.lang. javascript, Chris <c_bartlett@btc onnect.com> posted at
    Wed, 17 Dec 2003 22:22:32 :-[color=blue]
    >
    >"@SM" <stephane_moria ux@wanadoo.fr> wrote in message
    >news:3FE0BF65. 3E570E5C@wanado o.fr...[/color]
    [color=blue][color=green]
    >> beuark ! that's for IE ! ( and others what do they do ? )[/color][/color]
    [color=blue]
    >p.s. beuark is spelt burk in English.[/color]

    The OP evidently intended to represent a vulgar noise, descriptive of
    the code shown by Ralph, and not a real English word.

    But please do not make spelling corrections in a language that you
    yourself cannot spell properly.

    The proper English spellings are berk and burke, and not burk; the
    former is a simple insult of vulgar derivation, and the second means,
    roughly, cheat, being derived from a proper name.


    Page js-date5.htm has lost its final "eval".

    --
    © John Stockton, Surrey, UK. ???@merlyn.demo n.co.uk Turnpike v4.00 MIME. ©
    Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
    Check boilerplate spelling -- error is a public sign of incompetence.
    Never fully trust an article from a poster who gives no full real name.

    Comment

    • Jim Ley

      #17
      Re: Disabling Buttons?

      On Thu, 18 Dec 2003 01:38:37 +0100, "@SM"
      <stephane_moria ux@wanadoo.fr> wrote:
      [color=blue]
      >Chris a ecrit :[color=green]
      >>
      >> "@SM" <stephane_moria ux@wanadoo.fr> wrote in message
      >> news:3FE0BF65.3 E570E5C@wanadoo .fr...[color=darkred]
      >> > Chris a ecrit :
      >> > >
      >> > > onclick="this.d isabled=true;do cument.all.MyFo rm.submit();">
      >> >
      >> > beuark ! that's for IE ! ( and others what do they do ? )[/color][/color]
      >
      > onclick="this.d isabled=true; this.submit();"
      > onclick="this.d isabled=true; document.forms['MyForm'].submit();"
      > onclick="this.d isabled=true; document.forms[0].submit();"[/color]

      No reason to call submit at all, in fact it may be bad unless you also
      cancel the default behaviour of the submit button, when you click a
      submit button the form is going to be submitted unless you cancel the
      event.

      Also the this.disabled approach may result in your input submit
      elements name/value pair not being sent with the submission.

      this.disabled=t rue is all you need surely?
      [color=blue]
      > to be sure, it's preferable to use universal language (Ecma ?)[/color]

      Generally it's preferable to use what works in the widest possible
      situations with the lowest possible risk it shouldn't matter who
      convened the meeting that chose it, but yeah all your solutions were
      better than the simple .all solution suggested.

      Jim.
      --
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      Working...