Ajax Updates |
Posted: 31 Aug 2009 08:19 AM PDT We all know how good and how famous lightbox is around the web. Most of us probably have used it or any of its different children (lightbox++, lightbox JS blah blah, etc…) I had a personal project in mind, an online tool that allow me to search among different providers and view the videos without refreshing pages… lightbox was on my mind. So looking around the net, I found lightbox++, quite good but with some bugs that I had to fix in order to view the videos lightbox style. lightbox++ only allow one movie and also, it had to end with a .SWF extension, otherwise won’t work. I builded a solution, I put it the name of lightboxXL but I DO NOT WANT ANY RECOGNITION for this work, give it to the guys of CONFIDENTIALITY. How it works Check the following:
* TITLE: title of the image or movie * TAG: here we set IMG or SWF to tell lightboxXL if it is a flash movie or an image * HEIGHT: height of the image or movie * WIDTH: width of the image or movie * REL: this is a MUST if the link is part of a set you do REL="lightbox[SETNAME]" * HREF: where is the movie located? There are plenty websites explaining how it works, this version requires prototype.js library and the difference is the TAG attribute. I have included a full demo within the zip file but if you wish to see a working demo, go and visit my site: http://www.antcut.com, search videos by RSS or META, view them lightbox style and (in some providers) download them to your computer. Demo: http://www.antcut.com/ Download: http://www.antcut.com/xtras/lightboxXL.zip Source: http://webeaters.blogspot.com/2008/02/lightboxxl-for-prototypejs.html Related Listings:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Accordion Plugin using Jquery Script Posted: 31 Aug 2009 07:48 AM PDT This plugin is now part of jQuery UI and this standalone version won't be updated anymore. The page will remain as a reference. This plugin creates an accordion menu. It works with nested lists, definition lists, or just nested divs. Options are available to specify the structure, if necessary, the active element (to display at first) and to customize animations. The navigation-option automatically activates a part of the accordion based on the current location (URL) of the page. Make the selected elements Accordion widgets. Semantic requirements: The markup of your accordion container needs pairs of headers and content panels. By default, the header elements are anchors, assuming the following structure:
If you use a different element for the header, specify the header-option with an appropriate selector, eg. header: 'h3'. The content element must be always next to its header. If you have links inside the accordion content and use a-elements as headers, add a class to them and use that as the header, eg. header: 'a.header'. Use activate(Number) to change the active content programmatically. [edit] NOTE: If you want multiple sections open at once, don't use an accordion An accordion doesn't allow more than one content panel to be open at the same time, and it takes a lot of effort to do that. If you are looking for a widget that allows more than one content panel to be open, don't use this. Usually it can be written with a few lines of jQuery instead, something like this:
Or animated:
Dependencies * UI Core * UI Effects Core (Optional - only for non-default animations) Demo: http://jquery.bassistance.de/accordion/demo/ Download: http://jquery.bassistance.de/accordion/jquery.accordion.zip Source: http://bassistance.de/jquery-plugins/jquery-plugin-accordion/ Related Listings:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted: 31 Aug 2009 07:46 AM PDT Ajax Manager helps you to manage AJAX requests and responses (i.e. abort requests, block requests, order requests). It is inspired by the AJAX Queue Plugin and the AjaxQueue document in the jQuery-Wiki. $.manageAjax.create (uniqueName, options) Creates a new ajaxmanager and returns it. Takes a list of options: * normal jQuery-Ajax-Options * queue: (true|false|’clear’) the queue-type specifies the queue-behaviour. The clear option clears the queue, before it adds a new ajax-task to the queue (last in first out) * abortOld (true|false: aborts all “older” requests, if there is a response to a newer request * maxRequests: (number (1)) limits the number of simultaneous request in the queue. * preventDoubbleRequests (true|false): prevents multiple equal requests (compares url, data and type) * cacheResponse (true|false): caches the response data of succesfull responses (The cache will affect all Ajaxmanagers) Your constructed ajaxmanager knows three methods: * add: ([uniqueName], options) returns an id of your XHR object and takes the following options: o normal jQuery-Ajax-Options o ‘abort’ ([function]): a function that will be called, if the request is aborted * clear: ([uniqueName], [shouldAbort: true|false]) Clears the ajax queue of waiting requests. If the second parameter is true, all requests in proccess will be aborted, too. * abort: ([uniqueName], [id]) Aborts all managed XHR-requests. If you pass the optional index number of your XHR object only this XHR will be aborted. Example:
Demo: http://www.protofunc.com/scripts/jquery/ajaxManager/ Download: http://www.protofunc.com/scripts/jquery/ajaxManager/jquery.ajaxmanager.js Source: http://www.protofunc.com/scripts/jquery/ajaxManager/ Related Listings:
|
You are subscribed to email updates from Ajax Updates To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.