Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

cannot open another popup in popupafterclose: function() #4968

Closed
RahulLamkhade opened this Issue · 7 comments

4 participants

@RahulLamkhade

I want to open new popup after closing one popup.

                  $( "#popupSetDate" ).bind({
            popupafterclose: function(event, ui) { 
                calculations();
            }
        });
                    function calculations() {
            $( '#popInvestmentType' ).popup( 'open', {
                theme: "a",
                positionTo: event.target,
                transition: "none" 
            });
                      }

but another popup is not working. n not opening

@MauriceG

Hi @RahulLamkhade

I've a fiddle which shows how to chain popups with timeouts: http://jsfiddle.net/MauriceG/m3Fwt/show/light (edit: http://jsfiddle.net/MauriceG/m3Fwt/)

Please leave a note if you find a solution.

Maurice

@RahulLamkhade

Its not useful to my project..Thanks

I want to popup another window after closing popup1 which is closing automatically by clicking outside of the popup1.

@MauriceG

mmh ... You can use the timeout in the popupafterclose event : http://jsfiddle.net/MauriceG/8qZdf/

@RahulLamkhade

Thanks a lot it works..:)

@jaspermdegroot
Collaborator

@MauriceG

Nice! Do you want to add a note about this in the "chaining popups" paragraph in the docs?

@toddparker

Maybe even consider making a demo page illustrating this at some point. A note in the docs would be very helpful as a start though.

@MauriceG MauriceG referenced this issue from a commit in MauriceG/jquery-mobile
@MauriceG MauriceG Docs: Adds a note about popup chaining with a timeout (popup/index.html)
Also addressed to #4796 and #4968
95a0fa9
@toddparker

@MauriceG added a bit fo code to explain how to accomplish this into the docs so closing as fixed.
#4977

@toddparker toddparker closed this
@arschmitz arschmitz referenced this issue from a commit in arschmitz/jquery-mobile
@MauriceG MauriceG Docs: Adds a note about popup chaining with a timeout (popup/index.html)
Also addressed to #4796 and #4968
c7bb1ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.