p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: msgbox

Message #1 by "yls" <yls177@h...> on Wed, 20 Sep 2000 23:02:13 +0800
remember that ASP is on the server..thus when you attempt to do MSGBOX in
ASP you're instructing the SERVER to show the msgbox window which it cannot
(think if you had a page that poped up MSGBOX's all the time..the server
would be filled with them!!!!).

the code below is CLIENT sided VBSCRIPT.  That is, it is executed on the
CLIENT, and you're instructing the CLIENT to do the popup box.  This is
allowed on the client.  Try your same script in netscape.  Unless you have
the VBScript plugin for netscape it wont work.  That is why most client
sided scrpting is done in Javascrpt (alert() is the same as msgbox())

-> -----Original Message-----
-> From: yls [mailto:yls177@h...]
-> Sent: Wednesday, September 20, 2000 8:02 AM
-> To: Code Clinic
-> Subject: [proasp_codeclinic] msgbox
->   Hi, i cant display a msgbox in regards to asp.. but when i do this
-> <script>
-> sub command_onclick
->     msgbox "got it"
-> end sub
-> </script>
-> why this works???

  Return to Index