Hi All,
I am using the jQuery nyroModal plugin within ASP.Net. I love nyroModal, and overall its working very nicely.
But I am using the endShowContent callback to set focus to the first text input element on the page's content after nyromodal is finished loading. To achieve this I have the following code on the page that initiates the nyromodal popup.
$(function() { $.fn.nyroModal.settings.endShowContent = function(elt, settings) { $('input:text:first', elt.content).focus(); }; });
I can tell its kind of working, because the first text field does momentarily get focus when the modal appears. But then it kind of flickers and loses focus again. It's almost as if nyromodal decides it still isn't fully loaded and something else happens to take the focus back away. Or perhaps is the UpdatePanel interfering? (I don't know why it would). Is it likely that the UpdatePanel's bloated auto-generated AJAX JS calls are doing something after nyromodal's endShowContent call happens?
Any help or insight appreciated.