Results 1 to 8 of 8

Thread: msgbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126
    is there any way to use msgbox in ASP?

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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..

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126

    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?

  4. #4
    Guest
    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>

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126
    how do i make it only do that if there are certain conditions?

  6. #6
    Guest


    What do you mean?


  7. #7

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    126
    if not logged in then
    msgbox " blah "
    else
    do some ****
    msgbox "blah"
    end if

  8. #8
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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
  •  



Click Here to Expand Forum to Full Width