javascript for prompt

javascript for prompt

Dear sir,
I am using prompt()for taking a reason from vendor .

var reason=prompt('Reason for deleting:','');
Then i am checking a that reason cannt exceed 256 length,if it exceed i have to give an alert message.I done the following
if(reason.length>256){
alert("Value Exceed 256 character...");
}
But i am getting a script error that "length" is nt an object ,so how to remove this script error.And also this prompt is coming at top left corner i want that in a center so how to do it please help me.
Thanks...
View Answers

July 29, 2010 at 1:41 PM

Hi Friend,

Please post your full code.

Thanks









Related Tutorials/Questions & Answers:
javascript prompt alert
javascript prompt alert   Sending a prompt alert using a JavaScript function
javascript for prompt - JSP-Servlet
javascript for prompt  Dear sir, I have used prompt() for taking a reason while deleting using java script its working fine but prompt was coming at the top left so i want that prompt should come at middle so how to do
Advertisements
javascript for prompt - JSP-Servlet
javascript for prompt  Dear Sir, I am using a prompt() for taking... a prompt contains any special character or what.If contains a alert message has... then that prompt was not coming..So please tel me how to validate a prompt
javascript for prompt - JSP-Servlet
javascript for prompt  Dear sir, I am using prompt()for taking a reason from vendor . var reason=prompt('Reason for deleting:',''); Then i... an object ,so how to remove this script error.And also this prompt is coming
javascript for textbox or prompt using servlet - JSP-Servlet
javascript for textbox or prompt using servlet  Dear sir, I am using a prompt(),when a delete is confirmed,its working fine ,but when a prompt is closed or cancel ,i have to remain in the same page but here it is going
javascript for textbox or prompt using servlet - JSP-Servlet
javascript for textbox or prompt using servlet  Dear sir I am writing script in servlet,so prompt() is not working here so please help me...\"){"); out.println(" var reason=prompt('Reason for deleting
Prompt
into methods in the method asking for the input it uses a prompt command...) { System.out.print(**prompt** + ' '); return numberOfGrades } I don't undersant the prompt part
prompt using
prompt using  I want examples to use prompt and how to move the item from the prompt to a cell in a table. thank you
using prompt
using prompt  how to use prompt
Command Prompt in UI
Command Prompt in UI  Hi One Help... Please go through. I want to develop like that using jsp/javascript but nothing is striking in mind... Please give some suggestions to design first Thanks in advance---- Vanchinathan.R
What is a prompt box?
What is a prompt box?  What is a prompt box
JavaScript
JavaScript  clone JavaScript
ModuleNotFoundError: No module named 'prompt'
ModuleNotFoundError: No module named 'prompt'  Hi, My Python... 'prompt' How to remove the ModuleNotFoundError: No module named 'prompt'... to install padas library. You can install prompt python with following command
What is command prompt in Java?
What is command prompt in Java?  Hi, What is command prompt in Java? Thanks   Hi, On the Windows Command Prompt is a program to run the dos commands. This prompt is used to run any program by typing the name
javascript
javascript  javascript code to dynamically add table on button click.../javascript/javascriptexamples/javascript-add-row-dynamically.shtml http://www.roseindia.net/javascript/javascript-add-row-to-table.shtml http://www.roseindia.net
Javascript
Javascript  How validations are done using javascript ,with example? and interview questions on javASCRIPT
Command Prompt in UI
Command Prompt in UI  Hi, Is there any API or JAR file for running all the windows command prompt commands like dir,echo,ping commands? If any please tell me what is it? Thanks & Regards---Vanchinathan.R
JavaScript
should use JavaScript? Thanks   Hi, JavaScript is scripting language that runs on browser. You have to embed JavaScript in HTML page. Please see JavaScript tutorial. Thanks
JavaScript
JavaScript  how to get full path of a file type in javascript
javascript
javascript  Hi deepak, how to write form validation on javascript
javascript
javascript  write a program to display implement about browsers using javascript
javaScript
javaScript  How to open a browser window that cannot be resized? (HTML + Javascript
javascript
javascript  i have just learned javascript... can you tell me what kind of applications can be made by javascript?? thank you
command prompt is compilation is not working
command prompt is compilation is not working   Dear java users can anyone help me to run the program in command line prompt i tried by selecting... helloworld through command prompt class not found error and class loader not able
javascript
javascript  how to set the request or session attribute in javascript head part of jsp page
javascript
javascript  Hi sir, This is sinduri, i want to learn javascript, so plz can u help me.how to learn
javascript
javascript  hi sir, if i want to learn javascript. what concepts i want to know
JAVASCRIPT
JAVASCRIPT  I have one textbox and I want to validate that it must start with number(1-0). can anyone tell me a javascript for that ? thanks in advance
Javascript
Javascript   Javascript to check Numeric entry in checkbox.....   Hi Please find the following code for numeric entry validation in javascript function validateBox(){ var data=document.myForm.someText.value
javascript
javascript  hi, I was actually working on to calculate the number of days between two dates of yyyy-mm-dd format using javascript, and when i click on button then number of days should be display in textbox
javaScript
javaScript  . Print a table like below in JAVASCRIPT 5 x 1 = 5 5 x 2 = 10 ΓΆβ?¬Β¦ΓΆβ?¬Β¦ΓΆβ?¬Β¦. 5 x 20 = 100
javascript
javascript  passing javascript values to jsp   Hi Friend, Try the following code:ADS_TO_REPLACE_1 form.jsp: <html> <script>... Javascript value In JSP"> <% String st=request.getParameter("msg"); if(st
How to prompt user
How to prompt user  Dear Sir, I'm a new student, a beginner in Java. Pls help to write program as below :- a)to prompt user to input 2 integers, the 1st number entered as Digit 1 and 2nd number as Digit 2. b)Display the value
Javascript
this format xxx-xxx-xxxx, i want the code in javascript. as a function.   Javascript Phone Number Validation <html> <script> function..." method="post" onsubmit="javascript:return validate();"> Phone Number:<
Javascript
Javascript  Dear Sir, Thank You a lot for your continuos support.Again i am in need of your help. What is the javascript code to disable a link,once... javascript or css Please help me.Urgent Regards Debasis   Hello Friend
ModuleNotFoundError: No module named 'prompt-toolkit'
ModuleNotFoundError: No module named 'prompt-toolkit'  Hi, My... named 'prompt-toolkit' How to remove the ModuleNotFoundError: No module named 'prompt-toolkit' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sphinx-prompt'
ModuleNotFoundError: No module named 'sphinx-prompt'  Hi, My... 'sphinx-prompt' How to remove the ModuleNotFoundError: No module named 'sphinx-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'dob-prompt'
ModuleNotFoundError: No module named 'dob-prompt'  Hi, My Python... 'dob-prompt' How to remove the ModuleNotFoundError: No module named 'dob-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'hyper-prompt'
ModuleNotFoundError: No module named 'hyper-prompt'  Hi, My Python... 'hyper-prompt' How to remove the ModuleNotFoundError: No module named 'hyper-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'dob-prompt'
ModuleNotFoundError: No module named 'dob-prompt'  Hi, My Python... 'dob-prompt' How to remove the ModuleNotFoundError: No module named 'dob-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'hyper-prompt'
ModuleNotFoundError: No module named 'hyper-prompt'  Hi, My Python... 'hyper-prompt' How to remove the ModuleNotFoundError: No module named 'hyper-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'prompt-box'
ModuleNotFoundError: No module named 'prompt-box'  Hi, My Python... 'prompt-box' How to remove the ModuleNotFoundError: No module named 'prompt-box' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'prompt-for-password'
ModuleNotFoundError: No module named 'prompt-for-password'  Hi, My... named 'prompt-for-password' How to remove the ModuleNotFoundError: No module named 'prompt-for-password' error? Thanks   Hi
ModuleNotFoundError: No module named 'pv-prompt'
ModuleNotFoundError: No module named 'pv-prompt'  Hi, My Python...-prompt' How to remove the ModuleNotFoundError: No module named 'pv-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'pv-prompt'
ModuleNotFoundError: No module named 'pv-prompt'  Hi, My Python...-prompt' How to remove the ModuleNotFoundError: No module named 'pv-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'sphinx-prompt'
ModuleNotFoundError: No module named 'sphinx-prompt'  Hi, My... 'sphinx-prompt' How to remove the ModuleNotFoundError: No module named 'sphinx-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'argparse-prompt'
ModuleNotFoundError: No module named 'argparse-prompt'  Hi, My... named 'argparse-prompt' How to remove the ModuleNotFoundError: No module named 'argparse-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'http-prompt'
ModuleNotFoundError: No module named 'http-prompt'  Hi, My Python... 'http-prompt' How to remove the ModuleNotFoundError: No module named 'http-prompt' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'influx-prompt'
ModuleNotFoundError: No module named 'influx-prompt'  Hi, My... 'influx-prompt' How to remove the ModuleNotFoundError: No module named 'influx-prompt' error? Thanks   Hi, In your python
Javascript
Javascript  <html> <head> <script type="text/javascript"> function validateForm() { var sname=document.getElementById('spocname'); var scontact=document.getElementById('spoccontact'); if(sname.value.length

Ads