|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi all:
how do i remove the sickening "vbscript" from the msgbox caption header ?? <script language="VBScript"> msgbox "hello world" </script> |
|
#2
|
|||
|
|||
|
Mybe it's impossble..
|
|
#3
|
||||
|
||||
|
You can assign a title in the same way that you can in VB6 - it's just ...
Msgbox "Here is your message", vbOK, "Here is your Title" but VBScript will still append your title at the end of the existing "vbscript:"
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
|
#4
|
|||
|
|||
|
U can use com or dll to do it:
1.make a activex dll(COM) to realize custom the messagebox. 2.make a asp page to call the dll(COM).. But it's the best that u can use asp.. |
|
#5
|
||||
|
||||
|
Good Idea CP - didn't think of that one.
|
|
#6
|
|||
|
|||
|
?????
wow... that sounds like something huge... what do i have to do excatly???? the COM thingy...wats that |
|
#7
|
||||
|
||||
|
writing a dll is easy.. don't fret. YOU TOO CAN WRITE ActiveX DLLS! ... sorry... bad joke.
When you start VB6, one of the choices for a new project is an ActiveX DLL - Do implement something like you are wanting to do would be simple, since you are not looking for much.... something such as this should do. Code:
Public Sub MessageBox(ByVal StrMessage As String, buttons As VbMsgBoxStyle, ByVal Title As String)
MsgBox StrMessage, buttons, Title
End Sub
That should get you the basic functionality. Making a dll is easy, you write it in a project declared as ActiveX Dll - it saves it as a class - you make the dll from the File Menu, and then register it by using "RegSvr32 FilePathtoDLL/YourDLL.dll" from Start->Run. Then include the dll in your .asp using the include method, declare a variable as type YourDLLName, instantiate it , and then call it using YourVariable.MessageBox(Parameters) |
|
#8
|
|||
|
|||
|
but this becomes server-side instead right???
coz the calling will be local.....i need a client-side msgbox ! |
|
#9
|
||||
|
||||
|
What are you trying to do that you need a Client-Side msgbox for?
|
|
#10
|
|||
|
|||
|
the heading already says:
"vbscript msgbox" i need that for my login page |
|
#11
|
|||
|
|||
|
U will use client-side custom msgbox??It's more difficult than making a dll to be called by asp page...
|
|
#12
|
|||
|
|||
|
-_-"
isit possible to remove the "vbscript" in the msgbox caption?? |
|
#13
|
||||
|
||||
|
No... you might try mixing it with JavaScript
|
|
#14
|
|||
|
|||
|
<SCRIPT LANGUAGE="JavaScript" type="Text/JavaScript">
<!-- window.alert("NO Login Detected!!" + '\n' + "Please Login before proceeding.."); --> </SCRIPT> how do i specify the msgbox caption?? |
|
#15
|
||||
|
||||
|
Ok.. I lied. for some reason I thought that you could in JavaScript. The only option remaining, then, would be to try and do it server-side and have a postback event based on the response,if it is absolutely necessary to have the caption be different.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > VBScript Msgbox |
| Thread Tools | Search this Thread |