Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrolling
14th September, 02:02
Post: #1
Scrolling
Hi, Great work with Qtip, very useful plugin. I'm converting an Excel document into HTML and using Qtip along with the validation plugin for each of the fields. Consequently I have quite a few fields, around 250, which have the possibility of having a field (which is added dynamically as a div inside each td using the validation plugin).

At the moment, when I scroll over a td, the following is called:
JS Code
$("td").qtip({
				style: { 
					name: 'red', // Inherit from preset style
					tip: 'bottomLeft'
				},
				position: {
				  corner: {
					 target: 'rightMiddle',
					 tooltip: 'bottomLeft'
				  }
			    },
				api: {
					beforeShow: function() {
						var content = this.elements.target.children(".error-tooltip");
						if(content.length > 0) {
							this.updateContent(content.html());
							return true;
						}
						else {
							return false;
						}
					}
				}
			});


However qtip still creates a div in the DOM, which I think is affecting the scrolling. How can I stop the div being created if there isn't a div inside the td? (tested in Chrome).

thanks

Ian.
Find all posts by this user
Quote this message in a reply
Post Reply 




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