google-code-export / nyromodal

Automatically exported from code.google.com/p/nyromodal
1 stars 1 forks source link

Wish - Modalbox unlikly Window behavior! #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hello. 
i would love to configure nyroModal so that it is behaving like the CSS
Overlay @ www.method.com 
that would be really cool! 
because if the Modal Window isn't flying above the Content / the Rest of
the Page it would be more integrated into the Page Layout!

thx. 

J

Original issue reported on code.google.com by nevv...@gmail.com on 18 Feb 2009 at 10:54

Attachments:

GoogleCodeExporter commented 9 years ago
very cool idea, with some manipulation using http://nyromodal.nyrodev.com/ 
'blocker
Modal' demo example you could come close to this. just load the nyroModal into 
divs
that you create that are part of the dom and page layout

Original comment by william....@gmail.com on 20 Feb 2009 at 6:42

GoogleCodeExporter commented 9 years ago
i take that back. you cannot easily do that because the modal window can only 
exist
in one location at once, see my attached file as an example. i still say that 
this
would be a cool addition.

Original comment by william....@gmail.com on 20 Feb 2009 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
it is calling a function i added to try to remove the modal quicker. added to
jquery.nyroModal-1.4.2

    // Remove the modal function completely
    $.nyroModalEndRemove = function() {
        if(modal.full){
            modal.ready = false;
            modal.anim = true;
            modal.closing = true;
            endRemove();
        }
    };

Original comment by william....@gmail.com on 20 Feb 2009 at 9:02

Attachments:

GoogleCodeExporter commented 9 years ago
$('#block11,#block33').click(function(e) {
            $.nyroModalEndRemove()
            $.nyroModalManual({ 
              blocker:'#blocker3',
              content: 'hello, the page just loaded i am located left'
            }); 
            return false;
          });

for code above
replace '$.nyroModalEndRemove'
with 

jQuery.fx.off = true;
$.nyroModalRemove();
jQuery.fx.off = false;

and get same effect without needing that extra nyroModalEndRemove function i 
custom
created

Original comment by william....@gmail.com on 20 Feb 2009 at 9:10