SP.UI.Notify in Modal Dialog
By Anatoly Mironov
If you open a custom page (not a list item form) in a modal dialog, your notification won’t be shown. The reason is that the notification area (#notificationArea) is inside a hidden div (#s4-ribbonrow). To show this notificationArea we must display the notification area:
var $ribbon = jQuery("#s4-ribbonrow");
if ($ribbon.is(":hidden")) {
$ribbon.css({"min-height": 0, "height": "0px"})
.show().children().hide()
.filter("#notificationArea").show()
}
Comments from Wordpress.com
Jens Malmberg - Jan 3, 2013
Thanks a bunch again, your solution was the only good information i found quickly. And it was exactly what i needed done :D
Hi Jens! Cool that it was exactly what you needed done :) Cheers!
I never really managed to create more than one notification though, somehow it wouldn’t respond to the other injections from the code behind. Figured it probably created some sort of duality errors since i injected and ran a script function with the same name. But after a bit of tinkering i figured i’d use the status bar instead for the final message to the user, which is probably what i should use anyway :) Tack för alla bra tips man hittar på din blog