|
-
Nov 3rd, 2000, 10:15 PM
#1
Thread Starter
Lively Member
is there any way to use msgbox in ASP?
-
Nov 4th, 2000, 12:43 AM
#2
Frenzied Member
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...
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Nov 4th, 2000, 10:20 AM
#3
Thread Starter
Lively Member
well...
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?
-
Nov 4th, 2000, 12:13 PM
#4
Is this what you want?
Code:
<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>
-
Nov 4th, 2000, 04:52 PM
#5
Thread Starter
Lively Member
how do i make it only do that if there are certain conditions?
-
Nov 4th, 2000, 07:55 PM
#6

What do you mean?
-
Nov 5th, 2000, 12:09 AM
#7
Thread Starter
Lively Member
if not logged in then
msgbox " blah "
else
do some ****
msgbox "blah"
end if
-
Nov 5th, 2000, 12:33 AM
#8
Frenzied Member
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.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|