Save a tab in a jQuery Modal Window for future Display
        Posted  
        
            by Shauni
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shauni
        
        
        
        Published on 2010-06-15T13:52:24Z
        Indexed on 
            2010/06/15
            13:52 UTC
        
        
        Read the original article
        Hit count: 219
        
Hello, long time reader, first time poster.
I’m coming with an issue that many of you will find trivial but I’m bashing my head against it for too long time and I can’t seems to find any clue on the internet.
As a total scrubs with JavaScript, I’m trying to use JQuery.ui smartmodal windows (v 1.8.rc1) for displaying two football teams in two separate tabs. Like France in Tab(0) and England in Tab(1).
When I open this modal window, the first tab (France) is always opened by default.
Everything’s fine until here : I’m trying to improve this modal window by remembering what was the last Tab the user was looking when he closed the modal, for reopening it (in spite of the first tab, by default) when the user will reopen this modal latter on.
I’ve already tried to use the “selecting & loading a jquery tab programatically » method but without any kind of success, and I’m slowly running out of options (and time).
Thanks for reading me, if you have any idea on how can I use a parameter in the smartmodal call, that would greatly help me.
© Stack Overflow or respective owner