Question:
HOW to CREATE a CONFIRM popup msg for more than 500 words?
agu
2008-12-21 02:09:55 UTC
i have created a CONFIRM popup msg which will show a terms&conditions msg which user will have to accept or reject. however, the msg is very long, more than 500 words and the popup msg couldn't display all the msg.
Please help.
Thanks in advance.
Three answers:
?
2008-12-21 02:23:23 UTC
Usually this kind of thing is done using a custom dialog that includes a vertically scrollable multiline text box (sometimes called a text area box). As you aptly pointed out, a basic confirm dialog in most environments is geared toward short messages.



Since you didn't provide context such as language, environment, etc, it is really hard to provide you any more help than this.



**** Update now that I know the context:

One popular way to do this is to use a modal message. There's a number of ways of doing this.



Here's a website that shows you how to do no less than *8* different kinds of JavaScript-based modal messages:



http://www.wittysparks.com/2008/10/28/top-8-modal-dialogs-javascript/



*** Update for the update:



I think showModalDialog might do the trick for you. The good thing is that it is not just an IE thing, but works in Firefox and Opera as well. However, it doesn't work in Safari.



To get the return value, you'll want to do something like this in the dialog page:





Then in the JavaScript you'd check that the return value from showModalDialog = 'agree' to see if they agreed or just closed the window without agreeing.



*** Update to the update to the update:



A URL is fine. Terms and conditions don't change often so put those on another page with an accept button like I showed you above. You are on the right track, my friend. Don't give up now!
Just another Greek Guy
2008-12-21 02:28:28 UTC
Create a link to a TXT message and write the story of your life in there dude!

t4ke c4re
Stormageddon
2008-12-21 02:33:40 UTC
Why don't you turn it in to a DIV tag, and then have it show when the user needs to agree?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...