Prompting with a box

Y

Yodai

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

Yodai

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

mesal

Yodai said:
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!!!!

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

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodaldialog.asp?frame=true

http://msdn.microsoft.com/library/en-us/dndhtml/html/popupmenu.asp?frame=true

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndude/html/dude09252000.asp

good luck,
mesal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top