[jquery-dev] Re: Shouldnt val(val) accept a simple string, number, or boolean for radios?

2009-03-21 Thread Dave Methvin
If you say $("#myradio").val("42") it will set the value attribute of the element with id=myradio to the value 42. Are you proposing that do something else instead? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQ

[jquery-dev] Shouldnt val(val) accept a simple string, number, or boolean for radios?

2009-03-21 Thread lacroix1547
It will only work with an array as param. However a radio has only one value, unlike checkboxes. I dont really know if an array make sense as a parameter for radios, but single values surely do. Thanks! Simon --~--~-~--~~~---~--~~ You received this message because

[jquery-dev] Re: Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-21 Thread Dave Methvin
>>> I ran into a number of times where I needed to grab a >>> series of css values and set them all onto another, >> This functionality overlaps with what you were proposing in #4295 > That bug has nothing to do with the caller interpreting complex > shorthands. I agree; I was looking at the fu

[jquery-dev] Re: .animate({prop: 'show'}) to animate set size to natural size

2009-03-21 Thread Daniel Friesen
The problem there is that the height there becomes the end height. "show" unsets the value after animation. A little more like. var height = $(this).height(); $(this).hide().css({height: 5}) .animate({width: "show"}) .animate({height: height}, {complete: function() {$(this).css("height", ""

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread John Resig
> .unbind() .unbind(type); .unbind(type, func); > Using .unbind(func); seams the most logical since the pattern looks like > you're just ommitting whatever you aren't specifying specifically. > > What would "*.foo" do? Unbind everything that has that namespace. http://docs.jquery.com/Namespaced_E

[jquery-dev] Re: .animate({prop: 'show'}) to animate set size to natural size

2009-03-21 Thread John Resig
We swap the value out to get the value, but don't unset the value - and that's only for height and width. What you're talking about can be done like this: var height = $(this).height(); $(this).hide().css({height: 5}) .animate({width: "show"}) .animate({height: height}); That looks pretty s

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread Daniel Friesen
.unbind() .unbind(type); .unbind(type, func); Using .unbind(func); seams the most logical since the pattern looks like you're just ommitting whatever you aren't specifying specifically. What would "*.foo" do? Though as for .bind("*", fn); I don't see how that could really be done. There are do

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread John Resig
I remember someone mentioning something like: .unbind("*", fn) It could also apply to other things like: .unbind("*.foo", fn) .bind("*", fn) --John On Sat, Mar 21, 2009 at 6:16 PM, Daniel Friesen wrote: > > Originally the lead programmer wanted to avoid making the core of the > applicati

[jquery-dev] Re: Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-21 Thread Daniel Friesen
Dave Methvin wrote: >> I ran into a number of times where I needed to grab a >> series of css values and set them all onto another, >> > > This functionality overlaps with what you were proposing in #4295 but > to me it seems like a better way to do it because you can explicitly > get the ind

[jquery-dev] Re: .animate({prop: 'show'}) to animate set size to natural size

2009-03-21 Thread Daniel Friesen
I believe jQuery does it using swap and unsetting the value, right? ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com] -Nadir-Point & Wiki-Tools (http://nadir-point.com) (http://wiki-tools.com) -MonkeyScript (http://monkeyscript.org) -Animepedia (http://anime.wikia.com) -Naru

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread Daniel Friesen
Originally the lead programmer wanted to avoid making the core of the application dependent on any specific JavaScript framework. So I ended up writing a small one. Now we're trying to migrate to one that can be isolated nicely (jQuery) now that he's gone. Right now I'm picking at small differ

[jquery-dev] Re: jQuery.props should have mapping for "colspan" -> "colSpan"

2009-03-21 Thread David Citron
Done! Please see http://dev.jquery.com/ticket/4397 Thanks, Dave On Sat, Mar 21, 2009 at 2:48 PM, John Resig wrote: > Probably, yeah - could you file a ticket? > > --John > > > > On Sat, Mar 21, 2009 at 1:57 PM, David Citron wrote: > >> >> Internet Explorer does not accept the attribute "colspan

[jquery-dev] Re: jQuery.props should have mapping for "colspan" -> "colSpan"

2009-03-21 Thread John Resig
Probably, yeah - could you file a ticket? --John On Sat, Mar 21, 2009 at 1:57 PM, David Citron wrote: > > Internet Explorer does not accept the attribute "colspan" and instead > requires "colSpan" with a capitol 'S'. > > jQuery.props already has a mapping for "rowspan" -> "rowSpan". > > Should

[jquery-dev] jQuery.props should have mapping for "colspan" -> "colSpan"

2009-03-21 Thread David Citron
Internet Explorer does not accept the attribute "colspan" and instead requires "colSpan" with a capitol 'S'. jQuery.props already has a mapping for "rowspan" -> "rowSpan". Shouldn't a mapping for "colspan" -> "colSpan" be added as well? Thanks! Dave --~--~-~--~~~---

[jquery-dev] Re: .animate({prop: 'show'}) to animate set size to natural size

2009-03-21 Thread John Resig
And how is the natural height determined if you've already explicitly overwritten it with another value? --John On Fri, Mar 20, 2009 at 9:11 PM, Daniel Friesen wrote: > > At work I tried to animate something to grow horizontally then grow > vertically. > > .hide().css({height: 5}) // Use a smal

[jquery-dev] Re: Old json.js / Object.prototype compatibility problem, new fix for jquery-1.3.2

2009-03-21 Thread nothize
Hi jdalton, Thanks for the info!! Now I understand more to the problem and found some workaround others have done years ago. And the problem appeared in other js lib like prototype.. As with the old post said, the hasOwnProperty check is good enuf for this problem. It seemed that the workar

[jquery-dev] Re: Set offset

2009-03-21 Thread Brandon Aaron
Yeah, the core version would be much more simple than that ... I envision it being very similar to Dan's plugin. -- Brandon Aaron 2009/3/21 Scott González > > We're building this into jQuery UI, most likely for 1.8 ( > http://wiki.jqueryui.com/PositionTo ). We should figure out what > parts ca

[jquery-dev] Re: .unbind(func);

2009-03-21 Thread Cloudream
+1 And I wonder why you need your own framework :P On Sat, Mar 21, 2009 at 6:27 PM, Daniel Friesen wrote: > > When I wrote my framework at work with a .bind method similar to jQuery > I actually ended up adding another simple way to call it thinking jQuery > supported it. > > $(node).unbind(); //

[jquery-dev] Re: Set offset

2009-03-21 Thread Scott González
We're building this into jQuery UI, most likely for 1.8 ( http://wiki.jqueryui.com/PositionTo ). We should figure out what parts can/should go into core and what should go into jQuery UI. On Mar 20, 8:35 pm, Brandon Aaron wrote: > Cool. I'll take a look at this soon. We might also want to make

[jquery-dev] Re: unexpected eq() operator precedence result

2009-03-21 Thread Cloudream
Try $("> div > div:first-child", grid) On Sat, Mar 21, 2009 at 7:18 PM, Obinna wrote: > If I have a grid composed of row and cell div element as follows: > > > > > > > > > > > > > > > > > > > > As

[jquery-dev] Re: Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-21 Thread Dave Methvin
> I ran into a number of times where I needed to grab a > series of css values and set them all onto another, This functionality overlaps with what you were proposing in #4295 but to me it seems like a better way to do it because you can explicitly get the individual properties you want rather th

[jquery-dev] Re: Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-21 Thread Cloudream
On Sat, Mar 21, 2009 at 6:15 PM, Daniel Friesen wrote: > > At work when I was writing my own JavaScript framework (partly inspired > in API by jQuery) I ran into a number of times where I needed to grab a > series of css values and set them all onto another, as a result I ended > up coming up with

[jquery-dev] unexpected eq() operator precedence result

2009-03-21 Thread Obinna
If I have a grid composed of row and cell div element as follows: Assuming I have a 'grid' variable pointing to the top grid div, and I want to return all the cells in the first 'column'. I would e

[jquery-dev] .unbind(func);

2009-03-21 Thread Daniel Friesen
When I wrote my framework at work with a .bind method similar to jQuery I actually ended up adding another simple way to call it thinking jQuery supported it. $(node).unbind(); // everything $(node).unbind('type'); // all events of type $(node).unbind('type', func); // just the func event on ty

[jquery-dev] Enhancement suggestion: .css(['prop', 'prop', 'prop']);

2009-03-21 Thread Daniel Friesen
At work when I was writing my own JavaScript framework (partly inspired in API by jQuery) I ran into a number of times where I needed to grab a series of css values and set them all onto another, as a result I ended up coming up with another type of input to .css; $(someNode).css(['backgroundC

[jquery-dev] Re: jQuery - Development Environments?

2009-03-21 Thread Daniel Friesen
If anyone is interested I just tried experimenting with a little something. I installed a ruby file system watcher: http://paulhorman.com/filesystemwatcher/ And setup this small little script: #!/usr/bin/env ruby require "filesystemwatcher" watcher = FileSystemWatcher.new() watcher.addDirectory(