Solved

javascript confimation box with textbox

Posted on 2013-01-08
2
200 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to count occurrences of each item in an array.

636 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