Re: [jQuery] util plugins, was: What tools ...

2007-01-24 Thread Stephen Howard
Consider posting your plugins to JSAN (www.openjsan.org). Paul McLanahan wrote: > It would be nice to be able to contribute to a folder like that. I > have several little plugins that I use as helpers on larger projects > that I'm sure others would find useful as well. Is there a way to > easily

Re: [jQuery] Designing for reuse

2006-11-30 Thread Stephen Howard
I know we're all fond of the elegance of chaining, but would it be the least confusing to write it like: var gridControl = new Grid( '#grid' ) where: function Grid( dom_string ) { jQuery( dom_string ).each( function() { instantiate here... } ); ... } Remember not everything needs to l

Re: [jQuery] Next generation WYSIWYG editor... maybe? am I missing something?

2006-11-15 Thread Stephen Howard
I'm all for entheusiasm, but have you looked at tinyMCE? What shortcomings does it have that you are trying to address? http://tinymce.moxiecode.com/ - Stephen Tom Holder wrote: > Hi everyone, > > I've been getting increasingly frustrated by the flexibility and > output from all of the WYSIWY

Re: [jQuery] jQuery API discussion

2006-10-17 Thread Stephen Howard
I'd like to throw in my support for coalescing all the httprequest stuff into a request(method,{args}) method. This is much closer to how I currently do my xhr stuff outside of jquery Mark Gibson wrote: > Why not just .request(method, options) or .http() > > After all AJAX is just a bottle of t

Re: [jQuery] Breakable Each

2006-10-12 Thread Stephen Howard
Yes, please. -Stephen John Resig wrote: > I really prefer doing a 'return false' instead of throwing exceptions. > It just feels like an incredibly messy way to handle things - plus it > prevents you from writing good one-liners, which makes me sad. > > Plus the change is trivial, too: > >

Re: [jQuery] Selected value in dropdownlist

2006-10-05 Thread Stephen Howard
if ddlCourse is the select box, you can simplify your code to this, but I'm not sure why it isn't working: $(function() { $('#ddlCourse").change( function() { $('#class').load( 'filter_report.asp', { ajax: 1, cod_course: this.value } ); }); }); Have you tried doing an aler

Re: [jQuery] String Parsing

2006-10-03 Thread Stephen Howard
try using a regex and matching ([^\]+$) I'm not up on my \ escaping for javascript, so you may need a different number of \'s in there to make it work Tombo wrote: > this might not be jquery related, but i noticed there are a lot of savvy > javascript programmers in this mailing list. > > i want

Re: [jQuery] Accessibility. Take it Seriously in Your Web Apps.

2006-09-11 Thread Stephen Howard
Consider your own independence. Now consider needing to rely on others for many tasks in your life. Why would someone with disabilities be any less desirous of independence than yourself? Sure, it's a bit of a hassle from a developer's point of view when you have so much else already stacked

Re: [jQuery] checkbox items with same name

2006-09-06 Thread Stephen Howard
I think that this might work, though I haven't tried combining attribute tests and pseudo classes before: $('[EMAIL PROTECTED]:checked') Shawn's solution below won't work for you because it is searching on ids rather than names, which is what you have. Shawn Tumey wrote: > On 9/6/06, *Aljosa M

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
istof's scriptloader could use jQ's ajax code, or could merge with it. The mandate of the ajax library would certainly include the sorts of things that he and JSAN have in mind. -Stephen Jörn Zaefferer wrote: > Stephen Howard wrote: > >> jQuery remains coherent and q

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
e to have. > > As much as code purity is a good thing, there comes a point when you say > 'well, this might just make things better...'. > > > Stephen Howard wrote: > >> >> Christof Donat wrote: >> >>> Cons: >>> - either you need

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
Christof Donat wrote: > > Cons: > - either you need to do synchronous loading like JSON does or you need to > work > with callbacks as I do. Synchronous loading blocks the browser, callbacks are > not understood by everyone. > > I believe Christof is referring here to JSAN (openjsan.org) no

Re: [jQuery] filter() on attributes?

2006-09-05 Thread Stephen Howard
Try $('#foo [EMAIL PROTECTED]"bar"]').val() Dossy Shiobara wrote: > Then, get the value with something like: > > $("#foo input[name=bar]").val(); > > > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Submit a form?

2006-09-02 Thread Stephen Howard
Myles Angell wrote: $("#report-form").get(0).submit(); Return false isn't neccessary On 9/1/06, *Lewis, David* < [EMAIL PROTECTED] > wrote: Using jQuery, is there an easy way to find a form in an HTML document, submit it, then return "false" (to avoid resu

Re: [jQuery] jQuery and openjsan.org

2006-08-21 Thread Stephen Howard
I know you wanted to hear from non-Perl programmers, but I thought I'd throw this in, as I've suggested on the jQuery list in the past that people submit their jQuery work to JSAN (I have a couple of pre-jQuery items on JSAN myself) The killer I think for JSAN is the infrastructure's immaturit

Re: [jQuery] Using "." in id attributes confuses jQuery

2006-08-19 Thread Stephen Howard
I think i'm confusing things here. In addition to using dashes in class names and ids, I use them for custom property (attribute) names as well. specifically because I like to make my non-xhtml properties stand out, usually by prefixing them with the 'x-' prefix, similar to non-standard mime

Re: [jQuery] Using "." in id attributes confuses jQuery

2006-08-19 Thread Stephen Howard
I actually use '-' myself, which doesn't conflict with CSS, but jQuery still doesn't like them because of the attr() function translates this-name into thisName. I think we're all just stuck with using [A-Za-z0-9_] for attribute and id names :) -Stephen John Resig wrote: > Hehe - it seems lik

Re: [jQuery] Is there a simple way to break out of.each(function(){....});

2006-08-18 Thread Stephen Howard
Yeah, I had suggested returning an explicit false from your each function should short circuit. It was an easy add to the jquery source too, but I believe jq 1.0 is in feature freeze at the moment. -Stephen Dave Methvin wrote: > There was some discussion of this on the list earlier (June?) but