473,555 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!!!!
Jul 20 '05 #1
5 1214
I have read the following message from "Yodai" <yo***@spamnot. mail.vu>
and have decided to lend my vast knowledge.

The writer 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!!!!


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! =-----
Jul 20 '05 #2
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....

The writer 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!!!!


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

Jul 20 '05 #3
"Yodai" <yo***@spamnot. mail.vu> wrote in message news:<w_******* *************** *@telenews.tele line.es>...
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.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:

http://msdn.microsoft.com/workshop/a...asp?frame=true

http://msdn.microsoft.com/library/en...asp?frame=true

http://msdn.microsoft.com/library/de...de09252000.asp

good luck,
mesal
Jul 20 '05 #4
me**********@ya hoo.com (mesal) writes:
The best solution for you is using the showModalDialog method.


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

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #5
@SM


mesal a ecrit :

The best solution for you is using the showModalDialog method.


And what will it give with my NC4.5 ?
--
******** (enlever/remove [OTER_MOI] du/from reply url) *******
Stéphane MORIAUX : mailto:st****** *************** @wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephane.moriaux/internet/
*************** *************** *************** *************** **
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2679
by: mr_burns | last post by:
hi, i have been tryin to prompt the download of a file on the server using the following code: // send headers, forcing download: header("Content-type: application/word"); header("Content-Disposition: attachment; filename=\"files/myfile.doc\"");
5
1534
by: Richard Hollenbeck | last post by:
I have pages that I want a particular person to download dozens of images. Instead of opening each image separately with right-clicks, I want to be able to have them simply click, and the program will offer to save all the images to a location they specify. Can I do that with JavaScript?
1
2532
by: danijela.simunovic | last post by:
Hi! Is there a way that when I run a "make table query" and an "append query" that i won't be asked those 2 or 3 questions from access like :"you are about to run a make table...","the existing table ABCDE will be deleated..." and so on prompting for yes or no! I would like to make a command button which would prompt me for yes or no and...
3
6780
by: kim | last post by:
GOOD morning, I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file download mesage. How can i disabled it? I try another solution like this : set ws = createobject("Wscript.shell") set oexec = ws.exec("<%=server.mapPath(./xx.vbs)%>") But it give error "the path/xx.vbs is not a valid win32 application" May i know why? I...
0
2124
by: ar | last post by:
Hello, In IE I disable "Automatic prompting for file downloads" which causes the IE information bar to show up when I try to push a file download from an iframe. I want to keep this behaviour. When clicking "Download file..." on the information bar, a postback occurs. I would like to detect this postback. The file that is going to be...
11
1479
by: uoL | last post by:
Hello, I'd like to know how to prompt two values with prompt(); function. I need to get things like 'pass' and 'user, 'article' and 'value', etc ... in a document and I dont want to make a whole html in a pop up to do it .. Thanks !
9
1234
by: Joe | last post by:
Every time our application starts it prompts the user to allow it access to the internet because our application is checking for updates. Is there anyway programically to tell Vista to allow this connection without prompting the user? Thanks, Joe
1
1424
by: jeffkatyspanky | last post by:
I am prompting for the user to enter an IP address and I can't figure out a cleaner way to re-prompt if the user enters something other than a valid IP address. I'd like to just clear the "bad" entry and redisplay the prompt on the same line. Any ideas? Thanks in advance for your help. Here's my code so far: sub get_wap2gwip { ...
2
6966
by: pavi | last post by:
Anyone know how to set the Default homepage using javascript without prompting a pop up. Below is the code i used to set default home page. <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http:// www.xyz.com');">set the homepage</a> The problem with this code is when i click the link it prompts me a
3
3276
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net page, it uses js to print in IE. It always has the prompting user window appear. I have tried: <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="Print directly"> <input onclick="document.all.WebBrowser.ExecWB(6,2)" type="button" value="Print directly">
0
7622
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7547
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5171
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3596
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
865
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.