modal-dialog

jquery ui popup a YouTube Video modally

时间秒杀一切 提交于 2019-12-01 11:47:56
问题 Is there a way to use jQueryUI to popup a YouTube video modally? Here's the YouTube code I have: <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/DIuXtsaUDmM?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DIuXtsaUDmM?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385

Ajax Django Login/Authentication without re-direct

余生颓废 提交于 2019-12-01 11:22:46
I am trying to have an authentication set-up similar to that of StackOverflow, where the normal browsing is never affected unless there are some privileged actions which requires authentication (Do not bother users until then). It should be as "Log In" if not logged in or "UserName" if logged in. The relevant part of base.html (from fallr.net) (extended by index.html) looks like : <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ var methods = { forms : function(){ var login = function(){ var user = $(this).children('form').children('input[type="text"]').val(); var pass

Is there an equivalent of Mac OS X Document modal sheet in .NET?

假装没事ソ 提交于 2019-12-01 10:42:46
My application has been getting more and more requests to have certain dialogs behave similar to Mac OS X Document modal Sheet functionality, where a dialog is modal to just the parent control/dialog, and not the whole application (see http://en.wikipedia.org/wiki/Window_dialog ). Current windows ShowDialog() is insufficient for the needs of my application, as I need to have a dialog be modal to another dialog in the application, but still allow the user to access other areas of the application. Is there an equivalent to Document modal Sheet in C# .NET? Or even a close implementation someone

How can I make a JFrame modal like a JOptionPane?

纵饮孤独 提交于 2019-12-01 10:30:49
First, I will make the question and then I will explain the application. How can I make JFrame s to behave like JOptionPanes ? ( tutorial didn't help ) i.e. [Show content >> return a value] . Aditionally I need it to be [Show the frame >> Ask information >> Modify an object passed as parameter to the constructor >> return something] I already made the "Ok" button get the answer i want (displaying it in the console), but i cant figure out where to put the return statement i want the function to be something like public static String getAnswer(Args, Answer) Args , may contain name of the field,

Qt: How to give focus to a modeless QDialog created from the main window when the main window is blocked by a modal QDialog

为君一笑 提交于 2019-12-01 08:49:49
In my Qt Application I'm facing the following scenario: When a specific event is raised I show a modeless QDialog which asks the user for a confirmation. The Dialog is showed using show() function from a QMainWindow . Anytime the event is raised and no other modal QDialog are shown, the user is able to click the confirmation button. Unfortunately if a modal QDialog is visible when the event is raised, the modeless QDialog is unaccessible. This means that the user cannot click the confirmation button. The following code is a simplified version that causes the same problem In this example the

NgbModal.open not working in Angular 4

纵然是瞬间 提交于 2019-12-01 08:18:02
I want to display a message in a modal using angular 4.0.0 and ng-bootstrap 1.0.0-beta.4 but it does not display the modal. app-module.ts @NgModule({ // ... declarations: [ LoginComponent ], imports: [ // ... NgbModule.forRoot() ], entryComponents: [LoginComponent], }) export class AppModule { } login.component.ts @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.css'] }) export class LoginComponent { @ViewChild('examplemodal') private modalRef: TemplateRef<any>; constructor(private modalService: NgbModal) { } //.... some event that fires

Submit action getting hit twice while using JQuery UI Dialog

爱⌒轻易说出口 提交于 2019-12-01 07:54:31
问题 I am writing an ASP.NET MVC 4 application using JQuery and bootstrap. There is a modal dialog functionality in my site which used to work smoothly until recently when one another developer did some styling related changes in the website. Following is the code I have written in one of my partial view, I am opening this in a JQuery dialog: @using (Ajax.BeginForm("ChangeStatus", new AjaxOptions { UpdateTargetId = "AboutOrderContainer", HttpMethod = "POST" })) { @Html.HiddenFor(m => m.OrderId)

Detecting modal dialogs in MFC

六眼飞鱼酱① 提交于 2019-12-01 07:39:58
How can I programmatically detect if my MFC application currently is displaying a modal dialog or property sheet? Currently I'm using the following, but I feel that the code also triggers for modeless dialogs. bool HasModalDialog(const CWnd* pWnd) { const CWnd* pChildWnd = pWnd ? pWnd->GetNextWindow(GW_HWNDPREV) : NULL; while (pChildWnd) { if (pWnd == pChildWnd->GetTopLevelParent() && (pChildWnd->IsKindOf(RUNTIME_CLASS(CDialog)) || pChildWnd->IsKindOf(RUNTIME_CLASS(CPropertySheet)))) { return true; } pChildWnd = pChildWnd->GetNextWindow(GW_HWNDPREV); } return false; } Usage: HasModalDialog

Ajax Django Login/Authentication without re-direct

拥有回忆 提交于 2019-12-01 07:28:28
问题 I am trying to have an authentication set-up similar to that of StackOverflow, where the normal browsing is never affected unless there are some privileged actions which requires authentication (Do not bother users until then). It should be as "Log In" if not logged in or "UserName" if logged in. The relevant part of base.html (from fallr.net) (extended by index.html) looks like : <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ var methods = { forms : function(){ var

Cannot close ng-bootstrap Modal

本小妞迷上赌 提交于 2019-12-01 06:07:23
So I have a NgbModal with a form in it, and what I want to achieve is closing it on successful submit. This is my ModalComponent: @Component({ selector: 'create-update-transaction', templateUrl: './CreateOrUpdateTransaction.html', providers: [AccountTransactionsService] }) export class CreateOrUpdateTransactionComponent { closeResult: string; modalRef: NgbModalRef; @Input() transaction: Transaction = new Transaction(); @Output() onSubmit: EventEmitter<void> = new EventEmitter<void>(); constructor(private modalService: NgbModal, private transactionsService: AccountTransactionsService) {}