qtip

Have only one tooltip active on the screen when using the qtip jquery tooltip plugin

前提是你 提交于 2021-02-10 12:19:29
问题 I am using the jquery qtip tooltip on multiple elements (images) on a page. I am trying to have only one tooltip appear on the page at a particular time. If a tooltip is shown and another tooltip has been triggered to open, the currently open instance should close. I have found this in the documentation and have set solo: true however multiple instances of the tooltip are still appearing ont the page. Here is my jquery: <script type="text/javascript"> $(document).ready(function () { //******

qtip2 - Click Event not working on first click

拈花ヽ惹草 提交于 2020-02-05 04:33:05
问题 I have something weird that is happening and I was hoping someone can shed some light on it for me. I am using the qtip2 plugin on an element on the page. Here is the code for it: $('.tooltipEdit').click(function(){ var id = $(this).attr('id'); $(this).qtip({ show:{ event: 'click', solo: true }, content: { text:'<form id="tooltipForm"><input type="text" value="'+$(this).text()+'" /> <button id="tooltipSave">Save</button></form>' }, position : { my : 'top center', at: 'bottom center', target:

how to make tooltip follow cursor

ⅰ亾dé卋堺 提交于 2020-01-23 17:32:18
问题 How to get a tooltip to follow the cursor. My tooltip appears on the right bottom. Just a piece of it appears: Here's the code: $(document).ready(function(e) { // By suppling no content attribute, the library uses each elements title attribute by default $('#visualization').qtip({ // Simply use an HTML img tag within the HTML string content: 'i am a qtip' }); }); 回答1: I don't know anything about qtip as a library, but first I'd check to see if they have any options to pass in to achieve this

How to enable qtip2 in Piechart made by Plottable.js/D3.js

若如初见. 提交于 2020-01-11 14:03:44
问题 I have this code, which tried to enable qtip in plottable.js var store = [{ Name:"Item 1", Total:18.73424242 }, { Name:"Item 2", Total:7.34311 }, { Name:"Item 3", Total:3.1235535}, { Name:"Item 4", Total:12.763574}]; var colorScale = new Plottable.Scales.Color(); var legend = new Plottable.Components.Legend(colorScale); var pie = new Plottable.Plots.Pie() .attr("fill", function(d){ return d.Name; }, colorScale) .addDataset(new Plottable.Dataset(store)) .attr("qtip2-title", function(d) {

How to apply qTip in div content?

为君一笑 提交于 2020-01-06 19:40:33
问题 How could I get the "Tooltiptitle" and "Tooltiptext", both in one tooltip container, in qTip? When the mouse is over , then the tooltip will show the tooltiptitle and tooltiptext in qTip, the new tooltiptitle and tooltiptext will change accordingly when mouseover the new span. Please advice how to do it? <script type="text/javascript" src="js/jquery.qtip.js"></script> <body> <table> <tr class="row2"> <td class="col1"> <div class=""><span class="">Brad Pitt</span></div> <div class=

Ajax data to be collected in tooltip

天大地大妈咪最大 提交于 2020-01-03 05:53:26
问题 How should I proceed in achieving the following: I need to get the data from another server which is a jsp page it has the data related to the information i want to show in tooltip. The code for this is working and I can make ajax call to get the response. The concern is that I want the contents of qtip library to fit in the page since the page doesn't allow cross domain contents. If I will try to just reference the contents of qtip saved on my website(the domain is different from the page

Ajax data to be collected in tooltip

假装没事ソ 提交于 2020-01-03 05:53:05
问题 How should I proceed in achieving the following: I need to get the data from another server which is a jsp page it has the data related to the information i want to show in tooltip. The code for this is working and I can make ajax call to get the response. The concern is that I want the contents of qtip library to fit in the page since the page doesn't allow cross domain contents. If I will try to just reference the contents of qtip saved on my website(the domain is different from the page

How to avoid page scroll when using qtip?

自古美人都是妖i 提交于 2020-01-01 05:40:31
问题 I'm a big fan of qTip, but I was wondering if there was a way to use the modal window without having your page scroll to the top. Have looked around but haven't found anything yet. Is this possible? 回答1: Yes it is possible! You need to set the adjust field adjust : { screen : true } where you specify the position of the tooltip position : { my : 'right center', at : 'left center', adjust : { screen : true } } I am not sure if that is a feature of qTip1 but I used in in qtip2. The tooltip is

How to show tooltip on click

怎甘沉沦 提交于 2019-12-23 19:19:16
问题 I'm trying to use qtip2. My problem is that I want to show tooltip only when user clicks an href with a specified html inside. So I try this: function help(){ var link = document.getElementById('helps'); if(link.innerHTML=="Open"){ $('#helps').qtip({ content: { text: 'I get shown on click' }, show: { event: 'click' } }); link.innerHTML = "Close"; }else{ link.innerHTML="Open"; } } <a href="javascript:help()" id="helps">Open</a> My problem is that when I click, text becomes Close but tooltip

Automatically show qTip (jQuery plugin) tooltip after page load

蹲街弑〆低调 提交于 2019-12-21 09:17:16
问题 Has anyone ever used qTip to create a tooltip that responds to a click on an element, but also is set to popup after the page loads? I tried playing around with setTimeout, but I can't seem to get it to load automatically. Thanks! 回答1: You can define qtip to display in any event you like, simply by configuring it to not display in an event, but at your whim. For instance: $(document).ready(function(){ $('div.some-element').qtip({ content: 'This is the tooltip', show: { when: false, // Don't