.NET Development
Modal Popup
Gravatar is a globally recognized avatar based on your email address. Modal Popup
  Myron Joy
  All
  Sep 22, 2017 @ 08:50am

I am using the Modal popup in the toolkit. I would like to have the popup come up at a specific location. Can I change where is comes up, like at the bottom of the page?

Also I am getting the x to close at the bottom of the popup rather than in the upper right.

Thanks

Gravatar is a globally recognized avatar based on your email address. re: Modal Popup
  Rick Strahl
  Myron Joy
  Sep 22, 2017 @ 12:43pm

In what toolkit exactly?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Modal Popup
  Myron Joy
  Rick Strahl
  Sep 22, 2017 @ 01:56pm

West Wind Toolkit for .NET, WestWind.web

Thanks Myron

Gravatar is a globally recognized avatar based on your email address. re: Modal Popup
  Rick Strahl
  Myron Joy
  Sep 22, 2017 @ 03:34pm

The position is fixed based on the CSS. The dialog is centered in the screen.

However you can use the ww.jquery.js addin directly and create an HTML element any where on the page and then use $("#element").modalDialog() anywhere and it will make that element 'modal' as a popup.

As to the styling of the dialog make sure the style sheet formatting is included in your application and also I recommend you declare your modal dialog at the root of the document below the <body> tag to avoid any other position interference from other elements in the document hierarchy.

And please use the West Wind Toolkit forum for questions about the Toolkit.

+++ Rick ---

© 1996-2024