Javascript工具提示卡在点击上 [英] Javascript Tooltip getting stuck on click

查看:80
本文介绍了Javascript工具提示卡在点击上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JQuery工具提示。它适用于Chrome,但是当我用Firefox或IE打开页面时,如果我点击显示工具提示的链接按钮,工具提示就不会隐藏。它会坚持下去。



点击此处查看我的代码



问题是,如果它是链接,即使我们重定向到同一页面,整个页面再次加载,所以工具提示不会得到坚持但是因为我使用链接按钮,我的部分页面获得回发,工具提示得到坚持。它令人沮丧



jsfiddle不会显示链接按钮,因为HTML不支持它。如果有人想检查visual studio中的try代码

解决方案

你没有提供jsFiddle需要的任何HTML代码。相反,您将ASP.NET代码放在需要HTML的位置。它原则上不起作用。你必须先测试你的jsFiddle样本,然后再将它暴露给任何人。 ASP.NET代码应该位于服务器端,由配置为支持.NET with ASP.NET的HTTP服务器提供。请删除您的样本,不要做这些事情。这里没有什么可讨论的。



您的代码示例证明您不知道Web是如何工作的。不用担心,这并不难学。但是,从一开始就要先学习,然后再尝试做一些先进的事情。那么你就可以提出一些可能有意义的问题。



祝你好运。



< dd> -SA


我用CSS而不是javascript完成了我的工作。 http://www.webdesignerdepot.com/2012/11/how-to-create-a-simple-css3-tooltip/ ..

如果有人像我这样的问题使用它..

I am using JQuery tooltip. It is working well with Chrome but when I open page with Firefox or IE and if I click on the link button showing tooltip, the tooltip does not get hide. It get stick there.

Click Here To View My Code

The problem is that if it is link and even if we redirect to same page the whole page gets load once again and so the tooltip does not get stick but as I use link button and my part of page gets postback, the tooltip gets stick there. Its frustrating

The jsfiddle will not show linkbutton as the HTML does not support it. If anybody wants to check try code in visual studio

解决方案

You did not provide any HTML code which jsFiddle needs. Instead, you put ASP.NET code where HTML is expected. It cannot work in principle. You have to test your jsFiddle sample before exposing it to anyone. ASP.NET code is supposed to be on the server side and served up by the HTTP server configured to supporting .NET with ASP.NET. Please remove your sample and don't do such things. There is nothing to discuss here.

And your code sample is the evidence that you have no clue how Web works. Not to worry, it's not hard to learn. But learn if first, pretty much from the very beginning, and only then try to do something advanced. Then you will be able to ask question which may make some sense.

Good luck.

—SA


I got my work done with CSS instead of javascript. http://www.webdesignerdepot.com/2012/11/how-to-create-a-simple-css3-tooltip/..
If anybody gets problem like mine use it..


这篇关于Javascript工具提示卡在点击上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆