|
[Solved] qTip and SVG plugin
|
|
7th February, 11:28
Post: #1
|
|||
|
|||
|
[Solved] qTip and SVG plugin
Hello,
are there known discrepancies with qTip and Keith Woods SVG plugin? qTip works fine! on SVG elements when svgdom.js is deactivated. With svgdom.js active svgdom gets an error "this.each is not a function" when qTip fires on SVG elements. Any hints for me? Thanks Wolfgang Jquery.1.7.1 Jquery-ui.1.8.17 Jqeurysvg.1.4.4 qTip 1.0RC3 |
|||
|
7th February, 16:50
Post: #2
|
|||
|
|||
|
RE: qTip and SVG plugin
qTip 1.0 doesn't work well with SVG elements as far as I know... though qTip2 has an optional plugin that makes it compatible!
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
7th February, 18:16
Post: #3
|
|||
|
|||
| RE: qTip and SVG plugin | |||
|
7th February, 18:41
Post: #4
|
|||
|
|||
|
RE: qTip and SVG plugin
Can you setup a test case please: http://jsfiddle.net/fdavn/
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
9th February, 22:50
Post: #5
|
|||
|
|||
RE: qTip and SVG plugin
(7th February 18:41)Craig Wrote: Can you setup a test case please: http://jsfiddle.net/fdavn/I'm using jsFiddle for the first time, it will take a little...
|
|||
|
10th May, 19:24
(This post was last modified: 10th May 20:13 by Graham Watson.)
Post: #6
|
|||
|
|||
|
RE: qTip and SVG plugin
I can confirm this. With the SVG DOM extension in use, qTip2 produces a "this.each is not a function" error when the cursor enters an SVG element that has a tooltip assigned to it. When the SVG DOM extension is disabled, qTip2 works as expected.
The error appears on line 129 of jquery.svgdom.js, inside this function definition: /* Support attributes on SVG nodes. */ $.fn.attr = function(origAttr) { This is with Keith Wood's jQuery SVG DOM extension, version 1.4.5 (http://keith-wood.name/svg.html) and the current nightly version (May 9, 2012) of qTip2. At http://forum.jquery.com/topic/svg-svgdom...-function, someone describes the same problem and has a little more insight that might help debug this. |
|||
|
10th May, 20:50
Post: #7
|
|||
|
|||
|
RE: qTip and SVG plugin
Fiddling around and playing off of a hunch, I found a hacky workaround. If 'this' doesn't have the each() method, then it must be a single element, in which case the code in each() can just be run once for 'this'.
So immediately before the following code in jquery.svgdom.js: JS Code
And qTip2 now works as expected with SVG objects. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| [Solved] qtip2 and svg | zebul666 | 4 | 216 |
9th April 15:39 Last Post: zebul666 |
|
| [Solved] Disappearing Modal content in Cycle Jquery Plugin | michelleD | 2 | 565 |
27th January 17:04 Last Post: Craig |
|
| [Solved] Strange IE7 or IE 6 Issue With Imagemap Plugin | vakc | 2 | 521 |
24th November 21:12 Last Post: vakc |
|
| [Solved] Probable incompatibility with jQuery DataTables plugin | Timson | 8 | 1,453 |
1st August 15:25 Last Post: Craig |
|
| flot plugin, show tip on vertical invisible line | rynop | 3 | 1,439 |
19th March 16:59 Last Post: Craig |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




