On Jan 10, 2006, at 6:34 PM, Bob Ippolito wrote:
The only thing it does it call into updateNodeAttributes, which will
rewrite a few of the names for IE compatibility (e.g. class -
className) and let you use an object to set a bunch of nested
properties (e.g. with the style object).
On Jan 10, 2006, at 11:24 AM, mario ruggier wrote:
On Jan 10, 2006, at 6:34 PM, Bob Ippolito wrote:
The only thing it does it call into updateNodeAttributes, which
will rewrite a few of the names for IE compatibility (e.g. class -
className) and let you use an object to set a bunch of
On 1/8/06, Bob Ippolito [EMAIL PROTECTED] wrote:
There's several reasons, but none of them are all that good. Flash
doesn't have this restriction, for example, so long as the server
permits the user to talk to it.
We're looking to support an updated version of
On 1/10/06, Bob Ippolito [EMAIL PROTECTED] wrote:
Sounds like you've probably found a bug in Firefox. I don't see
anything in the code that should cause that behavior.
My reading of HTML 4 is that disabled is a boolean attribute,
meaning that having it present with any value[*] renders the
Get a good book or two or three.
I'm reading The Complete Reference: Javascript 2nd Ed and it is
pretty good for reference. Although for learning the language, I'd
suggest Professional Javascript for Web Developers that came out
recently.
In python we have the handy in operator:
if 3 in [1,2,3]: ...
Is there a similar function in MochiKit? I looked around and couldn't
see one, so I wrote on myself.
Looks like a pretty slick way to achieve what you are looking for...
I'm not sure how cross-browser it is...
http://laurens.vd.oever.nl/weblog/items2005/setsinjavascript/
On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
In python we have the handy in operator:
if 3 in [1,2,3]: ...
JavaScript does have an in operator.
The in operator expects a lefthand operand that is or can be
converted to a string. It expects a righthand operand that is an
object (or array). It evaluates to true if the lefthand value is the
name of a property of the righthand object. For example:
Those are two completely different animals though. I am looking for something
like:
isIn(5, [1, 3, 4]) - false
isIn(3, [1, 3, 4]) - true
Maybe since JS has two types of equality, there could be an isIn and
isInExact function.
We could also allow iterators instead of arrays. It would
Here's the latest. Beau Hartshorne has done a lot of work bringing it up to
standard.
Here are some of the changes:
1. Fixed bug in IE.
2. Handles errors differently. It will aggregate them then raise a single
error with the original errors intact rather than log them.
3. Should conform to
On Jan 10, 2006, at 4:33 PM, Jonathan Gardner wrote:
Here's the latest. Beau Hartshorne has done a lot of work bringing
it up to
standard.
Here are some of the changes:
1. Fixed bug in IE.
2. Handles errors differently. It will aggregate them then raise a
single
error with the
I would love to see the accordion effect, and the animate position and
size effects from Rico ported over to Mochikit.
Thoughts?
On Jan 10, 2006, at 5:48 PM, Yehuda Katz wrote:
I would love to see the accordion effect, and the animate position and
size effects from Rico ported over to Mochikit.
Who wouldn't? What we need is for someone to actually do the work.
I think some of this work has already been done by
looking to do something like this, but i am not sure if there is anything like it in _javascript_.. it does seem pretty mochikit-ish..var array = new Array (dog, cat, hamster, horse, monkey);positionAnimal(hamster) = 2; - this type of functionality..if value exists in the array, return the index,
14 matches
Mail list logo