Solved

javascript confimation box with textbox

Posted on 2013-01-08
2
198 Views
Last Modified: 2013-01-09
Hi,

On click of Reject button, it has to show a pop up message which is given in the attachment.

The Reason field is an optional field. If user click on OK button then btnReject_Click event should fire. If user click on cancel button btnReject_Click should not be executed.

If I use javascript built in function prompt box then I am not able to design exactly same as in attachment means not able to display "Are you sure........" message and "Reason..." field in two lines. So do I need to design separate page for this? or how?
Reject.jpg
0
Comment
Question by:swathi111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 250 total points
ID: 38759494
Hi,

If it's an ASP.NET you can try using AJaxModalPopup diaog's - http://blogs.msdn.com/b/chaitanya_medikonduri/archive/2012/02/10/modal-popup-windows-in-asp-net-web-applications.aspx

If not, then you can use jQuery UI - http://jqueryui.com/dialog/

One more simple one - http://www.jacklmoore.com/notes/jquery-modal-tutorial

Hope it helps u...
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 250 total points
ID: 38759519
if you want to use standard browser behaviour, you only can do something like:

  prompt("23\n42");

which is near by what you want
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question