Git Product home page Git Product logo

Comments (11)

louisameline avatar louisameline commented on September 26, 2024

Hi, it works on my side : http://jsfiddle.net/E66qn/

from tooltipster.

dertuxmalwieder avatar dertuxmalwieder commented on September 26, 2024

Interesting. So what could go wrong? :-(

The particular project is a minimalistic Twitter client, currently hosted here. (You might need a Twitter account to test it; don't forget to remove your token when you're done doing so.) Enable "Show nicknames" and "Show avatars" from the header bar.

For debugging reasons, I echo new tweets via "alert". A valid tweet looks like this:

<div class='tweet' title="<img src='http://pbs.twimg.com/profile_images/378800000596411665/7706e505f2a652a4f3a25e7a88a1e309_normal.jpeg' style='width:50px;height:50px;' /><p style='float:left;padding-left:1em'>Geschrieben von<br /><b>07elfe</b></p>">RT @SpeedleDum: Den meisten Spaß habe ich immer noch unter der Dusche. Ich tanze, ich singe, ich lache, ich weine. Es ist wie ein Broadway …</div><br />

JSFiddle displays it correctly, my application doesn't - I only see the image.

Example screenshot

What the...?

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

I can't debug for you sadly, but it must be related to your css. Why are you making the paragraph float left ?

from tooltipster.

dertuxmalwieder avatar dertuxmalwieder commented on September 26, 2024

Because I want it to be displayed next to the image, like the HTML demo tooltip does. I only use the default Tooltipster CSS. :-)

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

By the way, it won't solve your issue but html entities inside an attribute such as "title" should be encoded.

from tooltipster.

dertuxmalwieder avatar dertuxmalwieder commented on September 26, 2024

Encoded? The demo doesn't encode anything either. :-/

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

The demo is wrong, it will have to be updated about that. It works if it's not encoded but it's invalid HTML.

Can't Firebug help you figure out what's the matter with the css ? Give me a straight access to the page and I'll take a look.

from tooltipster.

dertuxmalwieder avatar dertuxmalwieder commented on September 26, 2024

The page generates everything dynamically from your Twitter account, so that would be weird. :) Anyway, a "valid example" of a generated DIV (which should have a tooltip) is above. :-/

Firebug says the tooltip only contains the IMG, so the CSS is probably not the problem here.

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

That's weird yes. Have you tried using the latest version of Tooltipster which is to be released soon ? It's version 2.3.0 and it is currently on dev branch. The way things are handled is slightly different to be more effective.

I'm not sure why it would work better in your case (as the current version also works in the Fiddle test), but it won't hurt to try it out.

from tooltipster.

dertuxmalwieder avatar dertuxmalwieder commented on September 26, 2024

Nice! The update to dev perfectly works! :-) Thanks!

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

Great ! You're welcome :)

from tooltipster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.