Solved

javascript confimation box with textbox

Posted on 2013-01-08
2
193 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
2 Comments
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 250 total points
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now