|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
msgbox for ASP ?
i found this function msgbox in VBScript contents of my book but when i write somthing with it the browser report an error, is that because msgbox function couldnt be available for ASP ?
Regards~ |
|
#2
|
|||
|
|||
|
msgbox will need to run on the client browser, not in server-side asp code.
|
|
#3
|
|||
|
|||
|
thanx for quick reply~
ok i insert code block into Html page but still reponds nothing, the code is right below, i'd appreciate of any advice. PHP Code:
|
|
#4
|
|||
|
|||
|
VBScript is supported by Internet Explorer, but most other browsers will not execute VBScript.
Also, in asp you can't dim msg = "test-" You dim msg msg = "test" msgbox msg |
|
#5
|
|||
|
|||
|
Oh but think of all the poor netscape users! (no really, just think about them and how bad it must be to use netscape
ahem, anyways.....meanwhile, welcome to javascript which is widely supported, use these<script> confirm('blah') alert('blah') prompt('blah') </script> just as easy! |
|
#6
|
|||
|
|||
|
Quote:
i modified code into this and still got an error: PHP Code:
the browser reports Microsoft VBScript running error (0x800A0046) |
|
#7
|
||||
|
||||
|
Hi Black
you need to drop the ASP quotes and add the script command around the code. ie. Code:
<SCRIPT LANGUAGE="VBScript">
dim msg
msg = "test~"
MsgBox(msg)
</SCRIPT>
Kong. |
|
#8
|
|||
|
|||
|
i got it ! thanx kkong
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > msgbox for ASP ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|