MsgBox Problem :"Permission denied:"msgbox""

Results 1 to 4 of 4

Thread: MsgBox Problem :"Permission denied:"msgbox""

  1. #1
    Hendon Guest

    Default MsgBox Problem :"Permission denied:"msgbox""

    Hello there,<BR><BR>I tried to include a message box in an asp page using this:<BR> MsgBox "Are you sure",4,"Confirm message" ..<BR><BR>but I got this message..<BR> " Permission denied: &#039msgbox&#039 "<BR>Please advice. thanks..<BR><BR><BR>

  2. #2
    JJ Quinn Guest

    Default RE: MsgBox Problem :

    I&#039m not sure if you can use the msgbox, but would this help at all?<BR>=============<BR>&#060;HTML&#062;<BR>&#060 ;HEAD&#062;<BR>&#060;TITLE&#062;window.confirm() Method&#060;/TITLE&#062;<BR>&#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR>function clearTable() {<BR> if (confirm("Are you sure?")) {<BR> alert("Ok then, here goes...") // for demo purposes<BR> //statements that actually do it<BR> }<BR>}<BR>&#060;/SCRIPT&#062;<BR>&#060;/HEAD&#062;<BR>&#060;BODY&#062;<BR>&#060;FORM&#062; <BR>&#060;!-- other statements that display and populate a large table --&#062;<BR>&#060;INPUT TYPE="button" NAME="clear" VALUE="You sure?" onClick="clearTable()"&#062;<BR>&#060;/FORM&#062;<BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR>

  3. #3
    Jairo Guest

    Default RE: MsgBox Problem :

    Hendon,<BR>You can&#039t execute a msgbox statement in an .asp file because it requires a user to click on a button to continue. Since it&#039s an .asp file, it&#039s running on the server - which often is unattended.<BR><BR>HTH,<BR>Jairo<BR>http://www.citywebarchitects.com

  4. #4
    Join Date
    Dec 1969
    Posts
    96

    Default RE: MsgBox Problem :

    I was having the same problem. The last response, that you can&#039t use MsgBox on an active server page, isn&#039t quite true. You *can*--but it has to be in client-side scripting as opposed to server-side. In English, that means that instead of writing:<BR><BR>&#060;%<BR>MsgBox "Hi, there!", 0, "Hi!"<BR>%&#062;<BR><BR>You have to write:<BR>&#060;script language = "vbscript"&#062;<BR>MsgBox "Hi, there!", 0, "Hi!"<BR>&#060;/script&#062;<BR><BR>Or, you can be writing in server-side code and insert some client-side scripting:<BR><BR>&#060;%<BR><BR>&#039 vbscript statements here ...<BR>response.write("&#060;script language=""vbscript""&#062;MsgBox ""Do you really want to delete?"", 52, ""Warning!""&#060;/script&#062;")<BR>%&#062;<BR><BR>Hope this helps!<BR><BR>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •