Profile
Achievement
Meander365's Recent SnippetsTagged jquery
- All /
« Prev 1 Next »
This is a cut down example using custom tabs (you can easily add a custom ajax event to load in content - just follow Ben Alman's example).
0
1077
posted 14 years ago by Meander365
Another handy one and one which I see quite often. You rollover an element and it animates. You then mouseover and mouseleave really quickly, multiple times and all the animations gets queued. This solves that problem. The delay(200) is like adding...
1
907
posted 14 years ago by Meander365
Handy. Hide an element as soon as possible, before document.ready. The element gets hidden but only when a class is applied to the html via js.
1
783
posted 14 years ago by Meander365
I can see this being useful for when you want to pass a lot of associated data to an event handler from elements and their chosen trigger action.
1
893
posted 14 years ago by Meander365
For those multiple rollovers - and their multiple flashes! The solution is to stop(!) them.
2
790
posted 14 years ago by Meander365
Dave Metvin\'s method. Two tricks to the method:\r\n\r\n$($boxes[div++] || []) - increaments \"div\" and passes an empty array if the element doesnt exist (so it exists).\r\n\r\narguments.callee - the name of the function currently being executed.
1
784
posted 14 years ago by Meander365
When you load content into a jquery ui dialog box which contains a textarea element that you use FCKeditor on. The second time you open the dialog, FCKeditor fails to load.
You have to destroy it when you close the dialog box.
0
881
posted 14 years ago by Meander365
Track how long code takes to load by using a cross browser profiler. Useage :
profiler("start");
//your js
profiler.done("#profiler");
0
645
posted 14 years ago by Meander365
This is dead handy. The purpose of the custom filter is to select all elements which have data attached. You can even find specific data.
1
1010
posted 14 years ago by Meander365
Great for those situations where you need an element fixed on a page - so when a user scrolls it stays in the same position - *relative to its parent element*.
0
862
posted 14 years ago by Meander365
A small plugin that you can use in the jQuery chain to delay the next in queue. For those using a jQuery library pre 1.4 (v1.4 + has .delay() ).
$('.notice').fadeIn().idle(2000).fadeOut('slow');
0
726
posted 14 years ago by Meander365
Incredibly useful. Great when you need to remove and add options to selectboxes.
0
979
posted 14 years ago by Meander365
Example of how to send a subscribe_user request using Notifo's api. Notifo lets you setup push notifications to mobiles - for any site.
Put the PHP into a separate file named notifo-proxy.php
0
1000
posted 14 years ago by Meander365
I was recently faced with the problem of setting focus to the next input field. The challenge was that I didn’t know what that field was. So given an input field, find the next logical (in the order of the DOM) input field and set focus. I came up...
1
1175
posted 14 years ago by Meander365
If you want to trigger an event on an matched element and that element may be introduced into the DOM from an Ajax request, you can still match against it by using the livequery plugin and the following code.
1
724
posted 15 years ago by Meander365