Use the dialog of jQueryUI to implement a prompt function.

Source: Internet
Author: User

Use the dialog of jQueryUI to implement a prompt function.

It is the most common function in program development. Insus. NET uses the dialog of jQueryUI to implement one. It can define the title and dialog box size.

In the ASP. net mvc environment.

Create two Action operations on the October controller. One is DialogDemo for the view and the other is ProcessData for processing:

 

Now write the jQuery code:

 

Use

$ (This). attr ("value ")


Obtain the text value of the button and send it to the ProcessData operation in the controller.

Real-time running to see the effect:



One task I want to achieve is to use Jquery UI dialog on page a to pop up a page B, and the page B will display the html obtained from page

. Delegate (". activeTask", "click", function (){
TId = $ (this). parent (). parent (). attr ("TID ");
Lightbox.showUrl('findByidTask.html ', "task details", 330,160, function (){
Ref ();
});
});

This is a click event. Click a hyperlink to bring up a dialog box. The dialog box contains the page in the pop-up box.

When there is a new message, I need to use a layer to pop up the prompt information? How do I use jquery and ajax? Network guidance, learning,

There is a pop-up box
Ability to customize positioning and scroll with screen without Jitter
You can also set the residence and lock screen
The tutorials and source code are provided.
Reference: www.blueidea.com/..20.12497

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.