Results 1 to 5 of 5

Thread: MsgBox Promission Denied !

  1. #1

    Thread Starter
    Hyperactive Member Tequila_worm's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    344

    MsgBox Promission Denied !

    I hope other people get this error so i'm hoping someone will have an answer. this is my code.

    VB Code:
    1. <%
    2.         dim msg
    3.         msg = msgbox("Are you sure you wish to delete this news?",vbokonly,"Delete News")
    4.        
    5.     %>

    this is my error:


    Error Type:
    Microsoft VBScript runtime (0x800A0046)
    Permission denied: 'msgbox'



    Any suggestions?

  2. #2
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    you can use this...
    <script langauge=VBScript>
    <!--
    dim strMsg
    strMsg=msgbox "your msg"
    -->
    </script>
    100% workable...

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    is my source code working??

  4. #4
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    ur trying to use messagebox in the asp script.....it wont work?
    r u trying to run some script on the server????

    if u want to run some script on the server then try using scheduler.....

    n if u want it to display on the client then use the solution provided by desperate.....

    wat is the exact functionally u want to achieve?

    regds,
    ashay
    "If you should die before me, ask if you could bring a friend."
    - Stone Temple Pilots

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Don't use Msgbox on the web...

    Unless you have debugging enabled on the server you can't use Msgbox in server side ASP code, and if you use it in client side script, it means you're using vbscript for client side script which you also shouldn't do.

    Learn Javascript. It is easy to learn and the syntax is just as simple as vbscript.

    For client side msgbox type functionality, use window.alert().
    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