jquery-tools

Jquery tools - live tooltip for Ajax

江枫思渺然 提交于 2019-12-09 14:16:25
问题 I have a working version of tooltip (jQuery Tools - http://flowplayer.org/tools/demos/tooltip/index.html) , jQuery(document).ready(function() { jQuery('.more_info').each(function(){ jQuery(this).tooltip({ effect: 'slide', offset: [10, 570], predelay: 100, position: "bottom left"}).dynamic( { bottom: { direction: 'down', bounce: true } }); }); }); after ajax is loaded , tooltips not working any more because , script already was loaded , i tried solution from forum http://flowplayer.org/tools

jQuery Tools -> Tooltip destroy method?

瘦欲@ 提交于 2019-12-08 15:56:08
问题 I am using Flowplayer's jQuery Tools framework (specifically the tooltips plugin) in a table, in addition to jQuery UI calendar. Each row of the table has the ability to insert a row above and below it. When doing this I am cloning the clicked object (events and objects) and inserting it directly above or below. After adding a new row, I refresh the table, generating new id's for my elements, reinitializing the datepicker, and attempting to reinitialize the tooltip. I am searching for a way

Dropdown box / radio button validation?

混江龙づ霸主 提交于 2019-12-08 10:56:18
问题 I'm using the jQuery tools (http://flowplayer.org/tools/demos/index.html) validator for my form and was wondering how to validate dropdowns and radio buttons? Anyone had experience of implementing it? 回答1: In the documentation it says you can also use the required="required" attribute for SELECT elements, but it's not working for me either. I opted to use the custom validator function. Hope this works for you. It is pretty basic though, its missing some other considerations to make it more

jquery tools overlay, how to keep mask when switching overlays

廉价感情. 提交于 2019-12-08 00:44:30
问题 I have a simple problem with 2 overlays. One overlay is triggered from (and by) the other overlay. As only one overlay can be active at any one time, correctly so, overlay number 1 that triggered 2 closes. However, it takes the mask with it and hence overlay 2 appears without the mask. How can I switch between 2 overlays without the mask disappearing? The code, overlay 1 $("button[rel*=busy]").overlay({ api: true , mask: { maskId: 'defaultMask' , color: null }, effect: 'apple', onLoad:

jquery tools overlay, how to keep mask when switching overlays

纵饮孤独 提交于 2019-12-06 05:06:51
I have a simple problem with 2 overlays. One overlay is triggered from (and by) the other overlay. As only one overlay can be active at any one time, correctly so, overlay number 1 that triggered 2 closes. However, it takes the mask with it and hence overlay 2 appears without the mask. How can I switch between 2 overlays without the mask disappearing? The code, overlay 1 $("button[rel*=busy]").overlay({ api: true , mask: { maskId: 'defaultMask' , color: null }, effect: 'apple', onLoad: function() { $.post( 'ajax_file_here.php' , { var: something } , function( data ){ if( data.status ==

jQuery Tools Scrollable: 3 Items on screen but scroll one at a time

旧巷老猫 提交于 2019-12-06 04:04:10
问题 I am using jQuery Tools scrollable for a carousel with three items in view at a time and scrolling one single item in an autoscrolling and circular fashion. I have used CSS to show the three items. This works ok until the carousel reaches the last item, it seems to wait until it has gone past it to load in the following items. It also seems to wait until the middle item is fully in view before displaying the last item. Demo here: http://jsfiddle.net/pgxSm/6/ Is there anything I can do about

jQuery Plugins vs UI vs some alternative

余生颓废 提交于 2019-12-04 08:03:53
问题 I've been building a web app using jQuery as much as possible. Every time I need to add some new feature, I usually search for a jQuery plugin that does what I need, then I integrated it into my web app. Of course after a while this application becomes very cluttered with all these "random" plugins from different authors, each one having different coding style, naming convention, etc. I would really prefer to use one uniform UI library or framework. I am looking at jQuery UI, but frankly I am

Jquery Tool: Keep selected tab on refresh or save data

心已入冬 提交于 2019-12-03 02:58:30
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"); }); 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, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""

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

ぐ巨炮叔叔 提交于 2019-12-02 05:08:31
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? 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 character: var elems = $("[href=\\/]"); From the jQuery docs : If you wish to use any of the meta

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

廉价感情. 提交于 2019-12-01 11:49:36
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 tried implementing a timer to let IE load before executing, and I can not shake this error. Here's