alexk
07-24-2002, 07:47 AM
How show Message box or Input box in client side.
Message box or Input boxalexk 07-24-2002, 07:47 AM How show Message box or Input box in client side. Thinker 07-25-2002, 08:00 AM The javascript alert is your only messagebox (assuming you don't want to do client-side VBScript). Don't know of any inputbox, but it is pretty easy to use a textbox on a form and call a javascript function to process it. Rezner 07-25-2002, 09:55 AM Here's an example of both the JavaScript input and message box: <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function GetInput() { var i = prompt('Enter your name:'); alert('Welcome '+i); } </SCRIPT> </HEAD> <BODY onLoad=GetInput();> </BODY> </HTML> Thinker 07-25-2002, 10:53 AM prompt - that is too easy. I went right past it in my javascript/DOM reference. alexk 07-28-2002, 05:59 AM Thanks. It's work very good. But may be you know how call this (GetInput) function from runat=server control? Thanks. ChiefRedBull 07-28-2002, 08:15 AM Any interaction with the user must be performed client side, or else the prompt will be shown on the server - which isn't what you want right? |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum