Prompting with a box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yodai

    Prompting with a box

    Hi all....

    I have 2 problems I am trying to solve with no success.....

    I need to open a dialog box with a small text box where the user writes an
    answer to a question. My first problem is: I'd like to code the thing so
    that, if the answer is incorrect, the page is automaticaly redirected to
    another URL. On the other had, I'd also like the box not to have the
    "cancel" button....

    Anybody knows the functions for this?

    Cheers!!!!


  • Dennis M. Marks

    #2
    Re: Prompting with a box

    I have read the following message from "Yodai" <yodai@spamnot. mail.vu>
    and have decided to lend my vast knowledge.

    The writer said:[color=blue]
    > Hi all....
    >
    > I have 2 problems I am trying to solve with no success.....
    >
    > I need to open a dialog box with a small text box where the user writes an
    > answer to a question. My first problem is: I'd like to code the thing so
    > that, if the answer is incorrect, the page is automaticaly redirected to
    > another URL. On the other had, I'd also like the box not to have the
    > "cancel" button....
    >
    > Anybody knows the functions for this?
    >
    > Cheers!!!!
    >
    >
    >[/color]

    and my reply is:
    There would be no problem doing what you ask but what would keep the
    user from going back to your page and looking at the source for the
    answer?

    We would probably need to know what the purpose of the question is in
    order to think about security. Since you want to check an answer I
    don't believe that you want a dialog box. You would need to open a
    window, process the answer, close the window, and either continue or
    transfer.

    --
    Dennis M. Marks

    Replace domain.invalid with dcsi.net


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

    Comment

    • Yodai

      #3
      Re: Prompting with a box

      Thank's for your concerns, but I am not facing a security problem here. See,
      I am a C programmer and I am working on an emmbedded system with a tyni-mini
      webserver that can only deal with one page (since there's no file system) If
      I can handle it to get a code to avoid left-clicking while the box is open
      and that can close the window when the answer is uncorrect, That's about as
      much security as I need...

      Cheers....

      [color=blue]
      > The writer said:[color=green]
      > > Hi all....
      > >
      > > I have 2 problems I am trying to solve with no success.....
      > >
      > > I need to open a dialog box with a small text box where the user writes[/color][/color]
      an[color=blue][color=green]
      > > answer to a question. My first problem is: I'd like to code the thing so
      > > that, if the answer is incorrect, the page is automaticaly redirected to
      > > another URL. On the other had, I'd also like the box not to have the
      > > "cancel" button....
      > >
      > > Anybody knows the functions for this?
      > >
      > > Cheers!!!!
      > >
      > >
      > >[/color]
      >
      > and my reply is:
      > There would be no problem doing what you ask but what would keep the
      > user from going back to your page and looking at the source for the
      > answer?
      >
      > We would probably need to know what the purpose of the question is in
      > order to think about security. Since you want to check an answer I
      > don't believe that you want a dialog box. You would need to open a
      > window, process the answer, close the window, and either continue or
      > transfer.
      >
      > --
      > Dennis M. Marks
      > http://www.dcs-chico.com/~denmarks/
      > Replace domain.invalid with dcsi.net
      >
      >
      > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
      > http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
      > -----== Over 100,000 Newsgroups - 19 Different Servers! =-----[/color]


      Comment

      • mesal

        #4
        Re: Prompting with a box

        "Yodai" <yodai@spamnot. mail.vu> wrote in message news:<w_yTb.309 3433$uj6.817679 5@telenews.tele line.es>...[color=blue]
        > Hi all....
        >
        > I have 2 problems I am trying to solve with no success.....
        >
        > I need to open a dialog box with a small text box where the user writes an
        > answer to a question. My first problem is: I'd like to code the thing so
        > that, if the answer is incorrect, the page is automaticaly redirected to
        > another URL. On the other had, I'd also like the box not to have the
        > "cancel" button....
        >
        > Anybody knows the functions for this?
        >
        > Cheers!!!![/color]

        Hi Yodai,

        The best solution for you is using the showModalDialog method. In the
        dialog you can implement your own page and by using there the
        window.returnVa lue property you can get a value to the original page.
        The only problem you might have is that the user always can close the
        window with X button at the corner so you should use default
        returnValue value.

        more information about showModalDialog you should get at:

        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.






        good luck,
        mesal

        Comment

        • Lasse Reichstein Nielsen

          #5
          Re: Prompting with a box

          mesalemalmog@ya hoo.com (mesal) writes:
          [color=blue]
          > The best solution for you is using the showModalDialog method.[/color]

          .... with the caveat that it only works in IE.

          /L
          --
          Lasse Reichstein Nielsen - lrn@hotpop.com
          DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
          'Faith without judgement merely degrades the spirit divine.'

          Comment

          • @SM

            #6
            Re: Prompting with a box



            mesal a ecrit :[color=blue]
            >
            > The best solution for you is using the showModalDialog method.[/color]

            And what will it give with my NC4.5 ?


            --
            ******** (enlever/remove [OTER_MOI] du/from reply url) *******
            Stéphane MORIAUX : mailto:stephane OTER_MOImoriaux @wanadoo.fr
            Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)

            *************** *************** *************** *************** **

            Comment

            Working...