Currently, the "Use AJAX tooltip" option doesn't actually use any AJAX – instead, it will use an <iframe> as the tooltip contents which will then be loaded with the specified URL. This works pretty well for some use cases, but has the disadvantage that it becomes much harder to style the tooltip like an ordinary, text-based one. Also, styles and scripts will be sent along with the framed page, which can be desired, but might just slow things down at other times.

I therefore propose adding support for really retrieving the tooltip via AJAX. This would be another option if "Use AJAX tooltip" (which I would also label differently) is selected.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Status: Active » Needs review
FileSize
10.82 KB

The attached patch would implement this. Please test/review!
(I implemented the new functionality using the qTip 1 library (since that's the one working with the jQuery version normally included in Drupal 7). Making it work with qTip 2, too, might need some additional adjustments.)

drunken monkey’s picture

FileSize
10.82 KB

Updated patch, according to latest module commits.

joelpittet’s picture

Good idea, could you maybe change the variable that was 'ajax' to 'iframe' so you don't have to use 'true_' prefix?

drunken monkey’s picture

Good idea, could you maybe change the variable that was 'ajax' to 'iframe' so you don't have to use 'true_' prefix?

Then we'd either have to have an update hook handling Views' internal config structure, or include BC code to handle the old option structure as well (especially difficult if the new variable is called the same as the old).
So, since most users won't care about the internal names anyways, I'd just leave this as-is.

But thanks a lot for your feedback! Glad to hear it sounds useful to you, too.

  • drunken monkey committed de9b190 on 7.x-1.x
    Issue #2894522 by drunken monkey: Added support for actual AJAX.
    
drunken monkey’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.