[jQuery] Adding methods to Plugins

2009-02-19 Thread djl
, $('.selector').myplugin('somemethod'); Can anyone please advise/point me in the right direction of how to do this? Thanks, djl

[jQuery] Re: Adding methods to Plugins

2009-02-19 Thread djl
is scrolled and appends a div with class of 'test' to the body. Any ideas on how to combine both options and methods in the same plugin code? Thanks, djl On 19 Feb 2009, at 11:56, Mike Alsup wrote: Which disables the draggable functionality - this is essentially what I'm after. ie

[jQuery] Re: How to know when body height causes a scrollbar to appear

2009-02-19 Thread djl
Brian, I just found this post: http://www.west-wind.com/Weblog/posts/453942.aspx It might be of some use to you? Cheers, djl On 19 Feb 2009, at 12:53, brian wrote: You could go at it in another way, actually, by forcing a scrollbar to always be present: body { height: 100.1

[jQuery] Re: How to know when body height causes a scrollbar to appear

2009-02-19 Thread djl
I suppose another way around this could be to maybe use a plugin similar to: (function($){ $.fn.elemheight = function(options) { var defaults = { element: 'body', }; var options = $.extend(defaults, options);

[jQuery] Re: Adding methods to Plugins

2009-02-19 Thread djl
functions within the plugin eg, var someFunction = function(e) { // do something return false; }; Thanks for your help. djl On 19 Feb 2009, at 13:16, Mike Alsup wrote: Well, that sort of works, although I need to be able to pass (and within the plugin provide default) options - I can do

[jQuery] Re: Adding methods to Plugins

2009-02-19 Thread djl
available as a method so it can be called when required, therefore I don't want to have to duplicate code I hope this makes sense? I'm a lot clearer on this than I was this morning, so thanks for your responses so far. djl On 19 Feb 2009, at 17:31, Mike Alsup wrote: Many thanks

[jQuery] Re: ScrollTo

2007-10-25 Thread djl
jCaroussel Lite is perfect for the Coda-style:- http://www.gmarwaha.com/jquery/jcarousellite/ On 25 Oct 2007, at 05:30, Josh V wrote: what about horizontal scrolling panes. the following sites are perfect examples of what i am trying to recreate. www.panic.com/coda and

[jQuery] slideUp/slideDown toggle questions

2007-07-12 Thread djl
Hi there, I have a page with a div that uses a toggle slideUp/slideDown effect as follows:- var $jq = jQuery.noConflict(); $jq(document).ready(function() { $jq(#recenttoggle).toggle(function() { $jq(#recent).slideDown('slow'); } ,

[jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-28 Thread djl
/liliReplaced 2/ liliReplaced 3/liliReplaced 4/li); } 2007/4/27, djl [EMAIL PROTECTED]: Hi there, I've got a simple page that uses the newsticker plug-in (http:// www.texotela.co.uk/code/jquery/newsticker/ ), as follows:- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http