Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2004
    Posts
    104

    Unanswered: How can I appear an alert mesage in vbscript

    Hi, I want to appear an alert mesage in a specific point in my asp-vbscript code. I try the alert method that is used in JavaScript but it isn't regognised.
    How can I do this?Is there other method to do that in VBscript? It is strange because I know that the alert method is the window's object method and that object is independed to any script language.

  2. #2
    Join Date
    Dec 2003
    Posts
    454
    Can you post your code? JavaScript should work.

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    And here's something that works for me that may give you some ideas:

    Response.Write "<script type='text/javascript'>alert('Yet to be developed.');</script>"
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

  4. #4
    Join Date
    Feb 2004
    Posts
    104
    If ...then
    alert(message)
    End if

  5. #5
    Join Date
    Feb 2004
    Posts
    104
    Thanks Bullschmidt but I still wonder for Vbscript solution...If doesn't exist solution in Vbscript then the disappointment it will be very strong (I didn't demand something very special).But, anyway, the previous Javascript solution appears enough good to me.Thanks a lot.

  6. #6
    Join Date
    Jan 2005
    Posts
    36
    You cannot compare javascript and vbscript. Javascript runs on the browser, VBscript runs on the web server. Any message box that comes up - comes up on the browser, and can be created by javascript.

    You are trying to compare chalk to cheese here.

  7. #7
    Join Date
    Feb 2004
    Posts
    104
    Ok thanks...

  8. #8
    Join Date
    Mar 2004
    Posts
    52
    You can use the msgbox in VB but it does exactely the same thing as the javascript would as it runs clientside eventhought it is VB script.
    "Never underestimate a large number of morons"

Posting Permissions

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