javascript dialog boxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • one.1more@gmail.com

    javascript dialog boxes

    I want to make a text game using javascript dialog boxes.
    i learned about confirm boxes but its not helpful(http://
    www.javascriptmall.com/learn/lesson6.htm)
    1. for ex, in the confirm boxes, instead of ok and cancel, i would
    like to replace them with (yes, i would like to go the path A and No,
    i would like to go in path B)
    2. And when user clicks on either button it should close and another
    dialog box should pop open with another question and two custom
    buttons
    3. And i also would like to know how to make some pseudo buttons, for
    ex: clicking on the no or the second button should do nothing.
  • Joost Diepenmaat

    #2
    Re: javascript dialog boxes

    one.1more@gmail .com writes:
    I want to make a text game using javascript dialog boxes.
    i learned about confirm boxes but its not helpful(http://
    www.javascriptmall.com/learn/lesson6.htm)
    1. for ex, in the confirm boxes, instead of ok and cancel, i would
    like to replace them with (yes, i would like to go the path A and No,
    i would like to go in path B)
    You can't change the buttons in any of the standard modal dialog boxes.
    2. And when user clicks on either button it should close and another
    dialog box should pop open with another question and two custom
    buttons
    You can do that. What part are you having problem with?
    3. And i also would like to know how to make some pseudo buttons, for
    ex: clicking on the no or the second button should do nothing.
    Can't do that. See above.

    If you need anything more fancy than the standard dialog boxes, you'll
    have to "fake" them yourselves, probably by putting a <divbox with
    onlick handlers/buttons on top of the target page or using a pop-up (and
    pop-ups are annoying).

    --
    Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

    Comment

    • one.1more@gmail.com

      #3
      Re: javascript dialog boxes

      On Feb 25, 4:51 pm, Joost Diepenmaat <jo...@zeekat.n lwrote:
      one.1m...@gmail .com writes:
      I want to make a text game using javascript dialog boxes.
      i learned about confirm boxes but its not helpful(http://
      www.javascriptmall.com/learn/lesson6.htm)
      1. for ex, in the confirm boxes, instead of ok and cancel, i would
      like to replace them with (yes, i would like to go the path A and No,
      i would like to go in path B)
      >
      You can't change the buttons in any of the standard modal dialog boxes.
      >
      2. And when user clicks on either button it should close and another
      dialog box should pop open with another question and two custom
      buttons
      >
      You can do that. What part are you having problem with?
      >
      3. And i also would like to know  how to make some pseudo buttons, for
      ex: clicking on the no or the second button should do nothing.
      >
      Can't do that. See above.
      >
      If you need anything more fancy than the standard dialog boxes, you'll
      have to "fake" them yourselves, probably by putting a <divbox with
      onlick handlers/buttons on top of the target page or using a pop-up (and
      pop-ups are annoying).
      >
      --
      Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/
      Nevermind. I decided to do it using plain html and buttons in a mini
      popup window (400 x 100).
      much easier it seems.

      Comment

      Working...