Solved

javascript confimation box with textbox

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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 64
Create a Dropdown list with sub group 10 43
How we can add Dten600.dll in GAC in c#. 18 55
Script to move computer from one domain to another 6 54
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…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

752 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