Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Swap between showing qTip as a tooltip and as a modal window
15th February, 07:04
Post: #1
[Solved] Swap between showing qTip as a tooltip and as a modal window
Hi All,

First off thanks for the awesome qTip. Coming to my issue, my requirement is to make qTip work as a regular tooltip with some data in it and when an external event happens, change it to a modal window and accept input within qTip.

I was successful in updating content as required. But the behavior of qTip is what am unable to change.

JS Code
$("#Mycontrol").qtip({
          content: $("#" + this.ClientID + "_tooltipDiv"),
          show: {when: { event: 'mouseover' },delay: 0},
          hide: { fixed: true },
          style: { background: '#FEFEF1' },
          position: {corner: {target: 'bottomRight',tooltip: 'topRight'}, adjust:{y:1}}});


I am unable to change hide attribute to
JS Code
hide:false
on the fly. Any help will be much appreciated
Find all posts by this user
Quote this message in a reply
15th February, 19:14
Post: #2
RE: Swap between showing qTip as a tooltip and as a modal window
I'd suggest moving over to qTip2, which lets you set properties like that and updates the tooltip properly 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
16th February, 05:48
Post: #3
RE: Swap between showing qTip as a tooltip and as a modal window
(15th February 19:14)Craig Wrote:  I'd suggest moving over to qTip2, which lets you set properties like that and updates the tooltip properly Smile

Thanks for the reply Craig. So is this behavior tough to achieve with qTip 1.x or not at all supported? Also it will be great if some pseudo code is posted as how to change hide dynamically.
Find all posts by this user
Quote this message in a reply
16th February, 20:53
Post: #4
RE: [Solved] Swap between showing qTip as a tooltip and as a modal window
Well qTip2 has a .set() and .get() API, which will update the tooltip correctly when you set a config option after render-time. RC3 doesn't have this, so setting the property won't have any effect on those options which are bound at render-time.

JS Code
$('.selector').qtip('option', 'hide', false);

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
  tip showing 2 times gkielwasser 8 243 5th May 19:00
Last Post: Craig
  [Solved] qtip showing content from db doesn't change when content in db changes. vtoepel 2 145 23rd April 16:02
Last Post: vtoepel
  Position of qTip Modal from call within a tooltip chuuke 1 263 17th January 21:54
Last Post: Craig
  [Solved] Browser still showing regular tooltip in addition to qTip Ryan Williams 2 853 18th December 19:54
Last Post: Craig
  qTip modal accept/decline form jinx8402 0 440 15th December 13:34
Last Post: jinx8402
  [solved] Trouble with qtips adding a scrollbar momentarily to window patricia 0 351 2nd December 19:40
Last Post: patricia
  [Solved] Dynamic content not showing? dabd 3 814 21st August 18:17
Last Post: Craig
  Qtip works but not always [stuck tooltip and sometimes not showing] bittyme 5 802 15th August 00:14
Last Post: bittyme
  [Solved] Prevent qTip to be displayed outside the window SDirk 2 852 9th August 15:48
Last Post: usman
  Modal tooltips on modal tooltips Dukegatts 2 535 17th June 07:38
Last Post: Dukegatts



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