views:

606

answers:

2

Hi,

I have been using the jQuery nyroModal plugin for a little bit of time, and frankly its one of the best modal plugins I've used to date! I'm hoping that a lot of other people have also used this plugin, hence me requiring some help with regards to using it along with ASP.NET.

I have however run into a problem with it in the past and trying to get it working with ASP.NET server controls - basically one cannot use any server controls within the modal as it creates another form tag, and as you obviously know, ASP.NET only allows ONE form tag. So I have decided to use standard HTML controls instead and call server-side code (say on button click) using web-services/page-methods. This is fine, but what I don't understand is how to do a proper callback in the modal, in other words - click the button, the modal shrinks to its default size and shows the loading indicator, and then enlarges when the HTML response has been received, and hopefully show the status of the request (ie. successful or failed)

I have just started learning about web-services and callbacks in .NET, so Im by no means an expert. Please could someone shed some light on this and provide me with a small "hello world" example? I will be be forever greatful!

thank u!

+1  A: 

I've had this problem as well and as it turns out when you open the modal it moves down to the end of your HTML outside of the <form> tag!

If you're using the latest version of nyroModal you can just tell it what element to appear inside with the blocker property

 $('#myElement').nyroModal({
    'blocker': '#aspnetForm'
  });

More info here: http://nyromodal.nyrodev.com/#demos

Chris Barr
Hi Chris! Thanx, I didnt know about that! U r absolutely right about the modal container moving outside the form tag. Have u any experience with using the callback feature of nyroModal?
Shalan
Hi there Chris. Any feedback w.r.t. callbacks from within nyroModal?
Shalan
Sorry, I don't really have much experience there, but check out the documentation here: http://nyromodal.nyrodev.com/#callbacksI'd imagine you'd just do something like this:$.nyroModalSettings({ endShowContent(function(){ /*do something*/ })});
Chris Barr
Of course!! where "function()" is my javascript JSON function. cool, thanx...I will definitely look at the documentation more thoroughly next time (oops!)thanx for all the help, chris!
Shalan
A: 

Hi Shalan, this is vishnu...I have jus started using Jquery NyroModal in my project... I need some help...could you please send a test mail to my ID: [email protected]

I would give the brief of my problem...

Thank you very much

Vishnu Reddy