Re: [jQuery] Fast form serializer function for review

2006-10-03 Thread Brian
I don't think that's proper behavior, though. *Both* values of foo should be posted if both are present. So, you'd either get foo=offValue, or foo=offValue,onValue. Either way, your backend code shouldn't break if the submitted fields are in the wrong order. - Brian On 10/3/06, Mike Alsup

Re: [jQuery] Evaluating script elements

2006-10-03 Thread Brian
Looks good, but please don't use eval as the function name. It's a Bad Idea to overload reserved/predefined words, even if namespaced. - Brian $.fn.eval = function(callback) { ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Full featured form validation library in jQuery?

2006-10-03 Thread Brian Miller
are already rolling around here. So, don't despair. :) - Brian One thing I'd also like to request is a complete form widgets plugin. At the moment there are a plethora of form widgets, each of them single plugins. That's not very useful for someone that wants something that gets included

Re: [jQuery] mouse gestures?

2006-10-02 Thread Brian Litzinger
I don't know many people who would be able to write anything much with the mouse, but it'd be a proof of concept all the same. That's what Wacom tablets are for ;) -- View this message in context: http://www.nabble.com/mouse-gestures--tf2359444.html#a6601083 Sent from the JQuery mailing list

Re: [jQuery] Chainable if/else - hot or not?

2006-10-02 Thread Brian
? - Brian Brandon Aaron schrieb: ** Going to re-read to make sure I'm not complete off-base ** Okay ... so after re-reading I think that Jörn's first idea is the better one than the other suggestions. My only concern is that it changes the behavior of the is method. I still think making

Re: [jQuery] Chainable if/else - hot or not?

2006-10-02 Thread Brian
I'm not sure I like that. If .filter() is destructive, it should be destructive all the time. It's less confusing that way. Just my opinion. :) that is cool, but destructive... is there a non-destructive if alternative available? Or do they just remove the filtered items from the chain,

Re: [jQuery] Single Value Attributes

2006-10-02 Thread Brian
What happens if you call .checked() with no args? Wouldn't that automatically read as false, leading to $( '#foo' ).checked() unchecking the checkbox? If called without any arguments, it should behave as if called with true as an argument. - Brian Hey everyone - I stumbled across a point

Re: [jQuery] mouse gestures?

2006-09-30 Thread Brian Litzinger
This is really good, and written better than what I could have done. In my case I'm needing it to affect numerous elements on the page such as li.sortableitem's. It doesn't seem to be allowing me to get the id of which element is clicked on. -- View this message in context:

Re: [jQuery] unchange() - how does it work?

2006-09-29 Thread Brian
of Least Surprise. - Brian I have a number of controls on a form that have a default onchange() function. In some places I would like to change the onchange function to something else, but I find that I have been unsuccessful in removing the default function. I have tried several different

[jQuery] mouse gestures?

2006-09-29 Thread Brian Litzinger
Has anyone done any work with mouse gestures? For example detecting if the user drug the mouse on a specific element at least 50 pixels left/right, right/left, up/down, down/up? -- View this message in context: http://www.nabble.com/mouse-gestures--tf2359444.html#a6573213 Sent from the JQuery

Re: [jQuery] jQuery Projects

2006-09-28 Thread Brian
do you think? I'm almost feeling crazy enough to take a whack at it. It all starts with $(label), how hard could it be? :) - Brian And the using it like this: input validate=pattern:###-###-## / And I still vote for doing in a standards compliant way... -- Klaus

Re: [jQuery] jQuery Projects

2006-09-28 Thread Brian
I don't think that, technically, things like parens and colons are permitted in a class. As an alternative, you can still do it standards-compliant (or write an XHTML module): input class=$v(pattern:###-###-##) / The plugin checks the class if there is no validate attribute. -- Jörn

Re: [jQuery] jQuery Projects

2006-09-28 Thread Brian
escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier BW? may be written as B\W\? or B\26 W\3F. *** On 28/09/06, Brian [EMAIL PROTECTED] wrote: I don't think that, technically, things like parens and colons are permitted in a class. I've

Re: [jQuery] jQuery Projects

2006-09-28 Thread Brian
Brian schrieb: After checking the W3C spec, it doesn't say much about what is and isn't legal in a class in HTML. It simply says that it's a CDATA. But, the examples in the spec doc do allow hyphens. I'd be cautious about what characters I use in a class, because CSS is stricter about what

Re: [jQuery] jQuery Projects

2006-09-28 Thread Brian
to provide custom formats. - Brian What about when you want to change some aspect of the mask? Say, the phone number mask now needs to handle international numbers as well. Why not separate the mask from the class name like this: label for=foo class=validate phoneNum/label input name=foo id=foo type

Re: [jQuery] Form plugin's serialize(): performance issues

2006-09-27 Thread Brian
Perhaps there should be a FastSerialize method, that doesn't guarantee semantic order, and uses every shortcut to cut down on dom-walking time? This way, the developer can choose whether to use the faster method, or the slower-but-correctly-ordered method. - Brian Can you explain why

[jQuery] Hiding multiple elements, then showing one

2006-09-22 Thread Brian Litzinger
I have a little bit of code that I want to hide x amount of divs, then when they're all hidden to show a specific one. Right now I have this... // hide all found divs $(settings.slide).hide(); // get the slide that i want shown div = $(settings.slide).get(i); // show the slide when everything is

Re: [jQuery] $([EMAIL PROTECTED]'FieldName']) does not work in Firefox

2006-09-21 Thread Brian
Might be related to bug #194, which Joern squished last week. Try the latest build? - Brian When attempting to get an element with the name (the same happens when I use 'id') ends with 'FieldName' I get an error 'z has no properties'. I am doing this as the page is an ASP.NET one (so

Re: [jQuery] Bug in .color() / Firefox

2006-09-18 Thread Brian
I vote for color() always returning the same value. The problem is that the code to clear that up is pretty bulky, by jQuery standards. If we re-wrote it to be smaller overall, it might be a candidate for inclusion. Otherwise, John might ask that we make it a plugin. - Brian On 9/18/06

Re: [jQuery] remove [EMAIL PROTECTED] frome the mailing list

2006-09-15 Thread Brian
The URL of the mailman manager page is actually in the headers of the email, but a lot of mail readers aren't going to do anything special with it. Here it is, for those who need it: http://jquery.com/mailman/listinfo/discuss_jquery.com Perhaps unsubscribe instructions should be included in the

Re: [jQuery] Anyone explain why this won't work in Safari

2006-08-18 Thread Brian Wilkins
It would help if I typed in the correct address! Sorry about that... http://www.aliasenterprises.com Try this one. Thanks, Brian John Resig wrote: Is there a problem with .ready? Short answer: most likely not. However, your server seems to be down so I can't check it right away

<    1   2