This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17345|Reply: 0

[Bootstrap] The Bootstrap modal dialog reloads every time

[Copy link]
Posted on 5/25/2016 11:13:08 AM | | | |




Let's talk about the business requirements first, when I need to click Add Server, the modal window needs to be reloaded,

In the mechanism of the Bootstrap modal window, the closure is actually hidden, not the real closure, and when you click to load the modal window, it will be displayed, we can see from the network request,

Only the first request for data, and after that, no data is requested.

I went through many websites and found a solution.



Just add such a sentence, which roughly means hiding the event, and then clarifying the data.

Below is the effect, we can see that every time it is reopened, it will be re-requested...






Previous:Turn off the Browser Link feature in Visual Studio 2013
Next:Bootstrap modal box obscures the datepicker time control
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com