If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How can I appear an alert mesage in vbscript

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-05, 04:18
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 97
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.
Reply With Quote
  #2 (permalink)  
Old 01-20-05, 10:36
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Can you post your code? JavaScript should work.
Reply With Quote
  #3 (permalink)  
Old 01-21-05, 02:24
Bullschmidt Bullschmidt is offline
Guru
 
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
Reply With Quote
  #4 (permalink)  
Old 01-21-05, 03:43
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 97
If ...then
alert(message)
End if
Reply With Quote
  #5 (permalink)  
Old 01-21-05, 04:01
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 97
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.
Reply With Quote
  #6 (permalink)  
Old 01-23-05, 16:45
DrewM DrewM is offline
Registered User
 
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.
Reply With Quote
  #7 (permalink)  
Old 01-24-05, 02:45
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 97
Ok thanks...
Reply With Quote
  #8 (permalink)  
Old 01-25-05, 07:05
Td04 Td04 is offline
Registered User
 
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"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On