[jQuery] Re: Adding methods to Plugins

2009-02-19 Thread djl
the plugin and also made 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, Mik

[jQuery] Re: Adding methods to Plugins

2009-02-19 Thread djl
s' or 'method' code by preventing either being able to run 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

[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: 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: Adding methods to Plugins

2009-02-19 Thread djl
yplugin({ width:500 }); Logs the selector id and 500 to the console when the selector 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,

[jQuery] Adding methods to Plugins

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

[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 http://www.hbcweb.

[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
play", "none"); } function replacecontents() { $("#news").html("Replaced 1Replaced 2li>Replaced 3Replaced 4"); } 2007/4/27, djl <[EMAIL PROTECTED]>: Hi there, I've got a simple page that uses the newsticker plug-in (http:// www.texotela.co.

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

2007-04-28 Thread djl
I'm a bit lost with your suggestion here? Are you saying I should add the lines: self.items = jQuery("li", self); self.items.not(":eq(0)").hide().end(); self.currentitem = 0; into the replacecontents function? Please advise. Thanks. On 27 Apr 2007, at 15:28, Dav

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

2007-04-27 Thread djl
Hi there,I've got a simple page that uses the newsticker plug-in (http://www.texotela.co.uk/code/jquery/newsticker/), as follows:-http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">Untitled Document