Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 5th, 2005, 06:18 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default INPUT BOX IN ASP/VBSCRIPT

Hi,
I have seen the inputbox function in vbscript, i used the following code in asp

intchoice=inputbox("delete?",vbyesno)

but i get the following error

Microsoft VBScript runtime (0x800A0046)
Permission denied: 'inputbox'

please advice on how to use inputbox in asp

Everything takes longer than you expect!
__________________
Everything takes longer than you expect!
Reply With Quote
  #2 (permalink)  
Old January 5th, 2005, 06:33 AM
Friend of Wrox
 
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

The VBScript with the InputBox runs on the client side, while ASP runs on the server. Hope you got the clue. Since you are trying to use this on the server side its throwing this error.


Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
Reply With Quote
  #3 (permalink)  
Old January 5th, 2005, 07:58 AM
Authorized User
 
Join Date: Aug 2004
Location: Calicut, Kerala, India.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe you have used the client side scripts in your ASP pages.
There cannot be any prompt dialog in ASP.
Please try it in the client side programming....:)


Reply With Quote
  #4 (permalink)  
Old January 5th, 2005, 09:03 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thanks, i have seen how to solve the problem using client side script, the new problem now is that since the function only works with vbscript, it will limit the scope of my software to only people who have vbscript installed on there browsers which is not desirable...i may use a form in place of "input box" to get my "yes" or "no" choice from the user.

thanks a lot for the help
-------------------------

Everything takes longer than you expect!
Reply With Quote
  #5 (permalink)  
Old January 5th, 2005, 08:33 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

chinedu

I may be wrong but im very sure that is a Visual Basic function and not a VBScript function. I have searched my vbScript .chm files and can not find it anywhere.



Wind is your friend
Matt
Reply With Quote
  #6 (permalink)  
Old January 3rd, 2007, 05:15 PM
Registered User
 
Join Date: Jan 2007
Location: san clemente, ca, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

input boxes and message boxes are possible in asp. try typing this piece of code in if you are using VBscript

<%
    msg = "YOUR MESSAGE HERE"
    Response.Write("<" & "script language=VBScript>")
    Response.Write("inputbox """ & msg & """<" & "/script>")

%>
Reply With Quote
  #7 (permalink)  
Old January 3rd, 2007, 05:17 PM
Registered User
 
Join Date: Jan 2007
Location: san clemente, ca, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

input boxes and message boxes are possible in asp. try typing this piece of code in if you are using VBscript

<%
    msg = "YOUR MESSAGE HERE"
    Response.Write("<" & "script language=VBScript>")
    Response.Write("inputbox """ & msg & """<" & "/script>")

%>

Reply With Quote
  #8 (permalink)  
Old February 15th, 2007, 02:18 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!
Great to actually have an input box and it works, but how do I get the input value and is there anyway to *** a password input?
Thanks!
Cathy
Reply With Quote
  #9 (permalink)  
Old February 15th, 2007, 02:47 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I do not think prompt boxes can be used to insert masked passwords. In any case to use the value in a prompt box you would use (Javascript):

myPromptValue=prompt("Please enter your value","Enter your value here");



================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting an input box in asp.net mungur Visual Web Developer 2008 1 November 11th, 2008 08:58 AM
VBSCRIPT in between JAVASCRIPT and an INPUT TAG Pr shookim Javascript 2 February 13th, 2006 10:48 AM
Input Box return value pakman Excel VBA 1 June 15th, 2005 04:29 AM
Populate a combo box from database w/vbscript morituri VBScript 1 March 1st, 2005 07:06 PM
Input Box tucker Access VBA 2 May 21st, 2004 03:43 PM



All times are GMT -4. The time now is 02:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.