jquery-tools

jQuery Tools Tooltip broken with jQuery 1.8.1

吃可爱长大的小学妹 提交于 2020-01-26 03:57:28
问题 I had jQuery Tools Tooltips working with jQuery 1.7.1. However, I had to update my jQuery to 1.8.1 to address a sweet IE8 and lower problem. The tooltips no longer work with jQuery 1.8.1. Anyone know a quick fix? Thanks. Update - here is the JS I use to call the plugin. Also using livequery. $(function() { $("th a[title], a.tipin[title]").livequery(function(){ $(this).tooltip({ offset: [-30, 0], opacity: 0.9 }).dynamic({ bottom: { direction: 'down' } }); }); $("a.tip[title]").livequery

callback from flashembed of jquery Tools

喜你入骨 提交于 2020-01-05 09:03:02
问题 jQuery Tools includes a flashembed API which accepts many parameters. Is there one which accepts callback function and fires after the success state of the flash player load event? playerdiv.flashembed(url+'/VIPlayer.swf','knds_player',300,250,'8.0.0',false,flashVars); Information: official website. Note: This is possible in Google swfobject library as below: swfobject.embedSWF(url+'/VIPlayer.swf','knds_player',300,250,'8.0.0',false,flashVars,callBack); function callBack(event){ event after

YouTube embedded overlays on each tab for IE10

百般思念 提交于 2020-01-05 03:05:09
问题 I am running into a weird issue and can't seem to find a solution. Using either JqueryTools tabs widget or JqueryUI tabs widget when a Youtube video is embedded it keeps overlaying it on every tab. This only occurs in IE, specifically tested with IE10. Anyone know why? I created a jsfiddle to better illustrate this issue: http://jsfiddle.net/ncfbX/19/ Edit: Wouldn't let me submit it without including some code, so: HTML: <div class="main"> <div class="slides">Slides division</div> <div id=

jQuery Tools Scrollable on touch disable vertical scroll

柔情痞子 提交于 2020-01-02 21:56:41
问题 I have a similiar slider to the one on jquerytools.org But how do I disable vertical touch events on the slider? This is quite a problem when the slider on portrait mode takes up nearly the whole screen estate. I tried $("#flowpanes").scrollable({ circular: true, easing: 'swing', vertical: false }) but that doesn’t work. Does anyone have a solution? 来源: https://stackoverflow.com/questions/9836802/jquery-tools-scrollable-on-touch-disable-vertical-scroll

Reinitialize jQuerytools Overlay on ajax loaded element

旧街凉风 提交于 2019-12-24 17:15:11
问题 I am trying to reinitialize a Overlay on new ajax loaded elements. Here my code: $('input.search-files').keyup(function(event){ if( event.keyCode == 13 ) { $.ajax({ type: "GET", url: ..., dataType: "html", data: {...}, beforeSend: function(){ $('.tr-documento').fadeOut('fast', function(){ $(this).remove(); }); $('.table-content').find('.table-loader').show(); }, success: function(data) { if( $(data).filter('tr').length == 0 ){ $('.table-loader').before( '<tr class="tr-documento"><td colspan=

Reinitialize jQuery plugin after AJAX page update

一曲冷凌霜 提交于 2019-12-22 14:03:48
问题 I have an image carousel in home page. To render it i use Jquerytools ( scrollable+navigator ) I trigger the jQuery initializer script in this way: $(window).load(function(){ $("#today-news-carousel").scrollable({ vertical: true, mousewheel: true }).navigator({ navi: '#today-news-navigator' }); }); The content of this carousel can be updated by AJAX call. After this call i need to reinitialize this carousel. Here the function that makes AJAX call: $(document).on('click', '.nav-highlight',

Jquery Tool: Keep selected tab on refresh or save data

一世执手 提交于 2019-12-20 12:38:23
问题 I am using jquery tool for tab Ui, Now I want to keep tab selected on page reload. Is there any way to do that? below is my code $(function() { // setup ul.tabs to work as tabs for each div directly under div.panes $("ul.tabs").tabs("div.panes > div"); }); 回答1: Here is a simple implementation of storing the cookie and retrieving it: function getCookie(c_name) { var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0,

jquery tools error: Uncaught Error: Syntax error, unrecognized expression: [href=/]

佐手、 提交于 2019-12-20 05:02:19
问题 I just loaded jQuery Tools onto my site. But the Google Chrome console shows an error: Uncaught Error: Syntax error, unrecognized expression: [href=/] (http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js) The jQuery version I am using is 1.7.1 How to deal with this problem? 回答1: I'm assuming you have a selector that is meant to match elements with an href attribute value of / . You will need to put the / character in quotes: var elems = $("[href='/']"); Alternatively, you can escape the

Hover not working with jQuery Tools - jQuery

萝らか妹 提交于 2019-12-20 04:38:13
问题 When I add jQuery Tools to my page, hover effect on links doesn't work. Without it, it works. <script src="jquery.js"></script> <script src="jquery.color.js"></script> <script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script> <script> $(function() { $("a").hover( function() { $(this).animate({color: "white"}, 400); }, function() { $(this).animate({color: "black"}, 400); }); }); </script> 回答1: If you switch the color plugin and the tools <script> tags the animation works

jQuery - Object Expected on IE and $(document).ready(function() {});

无人久伴 提交于 2019-12-19 11:28:04
问题 I have a page ([LINK REMOVED]) that works completely well in FireFox and Chrome, but for some reason I am getting an "Object Expected" error in most, if not all versions of IE. The error occurs on the line $(document).ready(function() { //^ Error occurs here ^ ... } I am using jQuery Tools, which implements jQuery 1.4.2, as well as some additional stuff. I've done some reading around. I've tried to put the ready function at the end of the code, right before the </body> tag - in addition, I've