Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ToolTip Hidden Divs Reinit After Ajax Loads #2

Closed
sadeghbarati opened this issue Nov 6, 2017 · 1 comment
Closed

The ToolTip Hidden Divs Reinit After Ajax Loads #2

sadeghbarati opened this issue Nov 6, 2017 · 1 comment

Comments

@sadeghbarati
Copy link

sadeghbarati commented Nov 6, 2017

screenshot 9

Hey Man Thank You For Your Awsome Plugin My Qustion Is
Plugin Create Some Thing Like This For Example
.myTooltip_0 To .myTooltip_10
Im Using Ajax For Load New Content And New HTML File
But After Load New HTML File Again Those Divs Are added Again like this
.myTooltip_0 To .myTooltip_10 And Again Start form .myTooltip_0 To .myTooltip_10

Another Issue I Wana Help is, Hovering Tooltips Inside of container when hover each tooltip in the container all of them will be shown and when Mouse Cursor Get out of container tooltips hides

How To Fixed These Issues??

Thanks ^_^

@prevwong
Copy link
Owner

prevwong commented Nov 7, 2017

Hey there, thanks for posting! Mind sharing your AJAX script ?

But from what I can observe in your screenshots, I assume when you perform your AJAX call, you're loading the entire content of the destination page which perhaps also contains the same script(s) used to initiate the Drooltip instances, hence is why the tooltips are being re-added again.

As of now, Drooltip does not have a destroy() method to remove all the added tooltips associated with an instance (but I might add this in a future update 😄 ). Meanwhile, if what I said is the case, you can manually remove all the .drooltip elements during your AJAX call prior to loading the new HTML page.

Regarding your 2nd issue, I am not quite sure if I understand correctly, could you please elaborate further on what you mean ?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants