Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open a modal popup window from a click inside qtip
10th August, 12:07
Post: #1
Open a modal popup window from a click inside qtip
I am using the following code:

JS Code
$(this).qtip({
    content: $('<iframe src="customTemplate.html" height="250" width="500" frameborder="0" style="border:0px solid red !important" noresize="noresize" />'),
    button: 'Close',
    show: {
        prerender: false,
        effect: {
            type: sEffect,
            length: effectLength
        },
        when: {
            event: "click"
        }
    },
    hide: {
        effect: {
            type: hEffect,
            length: effectLength
        },
        when: {
            event: "click"
        }
    },
    position: {
        corner: {
            target: "bottomLeft",
            tooltip: "topLeft"
        }
    },
    style: {
        width: 500,
        padding: 0,
        border: {
            width: 0,
            radius: 0,
            color: "#A2D959"
        },
        classes: {
            target: "accountNoPopup",
            tooltip: "acInlineCtr",
            tip: "",
            title: "acInlineTitle",
            content: "acInlineContent",
            active: ""
        }
    },
    api: {
        onShow: function() {},
        beforeHide: function() {
            this.elements.target.removeClass("accountNoPopupActive")
        },
        beforeShow: function() {
            var a = this;
            this.elements.content.find("#closeIcon").click(function() {
                a.hide()
            });
            this.elements.target.addClass("accountNoPopupActive")
        }
    }
})
});


Now I want to open a modal popup onclick of a hyperlink inside the iframe in qtip.
Please help.
Find all posts by this user
Quote this message in a reply
10th August, 19:32
Post: #2
RE: Open a modal popup window from a click inside qtip
If you're loading an iframe with content, just stick the modal pop-up code in the page your loading into it... much easier Smile

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] I need the tooltip to stay open when i mouse over it Arcadian 2 1,254 5th April 09:08
Last Post: Arcadian
  [Solved] open jqtip from javascript call iamcanadian1973 2 1,258 28th July 21:18
Last Post: iamcanadian1973
  nested qtip or a qtip inside another qtip uberman 4 2,120 20th July 18:12
Last Post: logan
  close modal dialog from inside the content siriusblack 3 2,501 21st April 17:57
Last Post: Craig
  How to qtip over img that is on a JQuery popup? arthur71 1 2,022 29th January 22:20
Last Post: Craig
  Open a new tip on a tip close hari41980 3 1,741 31st August 11:49
Last Post: Craig
  Close a qTip from inside the tip content? ChimneyMedia 3 4,654 6th August 12:36
Last Post: Craig
  qTip fixed and always visible inside img caesar2k 2 2,677 14th May 14:51
Last Post: caesar2k



User(s) browsing this thread: 1 Guest(s)