[jQuery] Re: recursive dom walker

2009-05-07 Thread AndyCramb
undefined if you attempt to call $('.selector').recurse You'd have to call $.recurse You can implement a pretty quick fix, if you don't plan on doing much else with the function. Try: $.recurse = $.fn.recurse = function(options){     ... } On May 6, 3:51 pm, AndyCramb andycr

[jQuery] Re: recursive dom walker

2009-05-07 Thread AndyCramb
; On May 7, 11:33 am, AndyCramb andycr...@googlemail.com wrote: Thanks it works(returns the wrapped set and allows chaining) when I return the selector straight away from within the plugin but when I try and return a filtered set $.recurse({source:a_1}).setDisabled(true) it will not allow

[jQuery] recursive dom walker

2009-05-06 Thread AndyCramb
I am trying to write a plugin that will eventually match a specific string pattern on the id attribute of all form element(s) I aim to get a collection of all elements that I want to return for chaining I generate a regular expression on the fly based on the arguments passed in and use this to

[jQuery] Re: recursive dom walker

2009-05-06 Thread AndyCramb
function is not a method of the jQuery.fn object, so it can't work on elements. The line: $.recurse = function(options) { should be $.fn.recurse = function(options) { On May 6, 9:00 am, AndyCramb andycr...@googlemail.com wrote: I am trying to write a plugin that will eventually match

[jQuery] Re: Form validator - cross field validation

2009-04-15 Thread AndyCramb
Hi Jörn, Yes I will get a test page up and running Interestingly enough it works fine in IE6 but is not working in FF3.0.7 Thanks Andy On Apr 14, 9:42 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Okay, then its something else. Could you provide a testpage? Jörn On Tue, Apr 14,

[jQuery] Form validator - cross field validation

2009-04-14 Thread AndyCramb
Hi, I am trying the forms validation plugin and cannot figure out where I am going wrong with it I can get cross validation working aginst a checkbox but I am unable to get it working against an input box HTML is supplied below The rules metadata is below the HTML Any help is much appreciated

[jQuery] Re: Form validator - cross field validation

2009-04-14 Thread AndyCramb
...@googlemail.com wrote: There is no field with the id source? Add id=source to that input... Jörn On Tue, Apr 14, 2009 at 6:33 PM, AndyCramb andycr...@googlemail.com wrote: Hi, I am trying the forms validation plugin and cannot figure out where I am going wrong with it I can get cross validation