Click to See Complete Forum and Search --> : msgbox
MasterGoon
Nov 3rd, 2000, 09:15 PM
is there any way to use msgbox in ASP?
monte96
Nov 3rd, 2000, 11:43 PM
You can use msgbox in ASP. But presumably you are refering to a messagebox on the client/browser.
Use window.alert(message) instead.
Msgbox on server side script means a locked up web site unless someone is available to click the ok button...
MasterGoon
Nov 4th, 2000, 09:20 AM
what would i do if i want it to check a value, and if its false make a msgbox saying that to the user before redirecing to where i want to go?
Is this what you want?
<SCRIPT LANGUAGE="JavaScript">
function changeIt(newDes) {
(window.alert(newDes))
}
</SCRIPT></HEAD>
<BODY>
<FORM><H3>Choose your place to spend eternity:<br>
<INPUT TYPE="radio" NAME="choices" onClick=
"changeIt('Heaven')">
Heaven<br>
<INPUT TYPE="radio" NAME="choices" onClick=
"changeIt('Hell')">
Hell<br>
</H3>
</BODY>
MasterGoon
Nov 4th, 2000, 03:52 PM
how do i make it only do that if there are certain conditions?
:confused:
What do you mean?
:confused:
MasterGoon
Nov 4th, 2000, 11:09 PM
if not logged in then
msgbox " blah "
else
do some ****
msgbox "blah"
end if
monte96
Nov 4th, 2000, 11:33 PM
In client side script,
window.alert = MsgBox
window.alert "Bark bark.. you did something wrong.."
as opposed to
MsgBox "Bark bark.. you did something wrong.."
as for doing it conditionally, well.. it depends on what conditions and which scripting language you are using on the client side. You can use VBScript or Javascript.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.