Instructions:
* This pack contains the following compressed versions of Prototype:
moo.fx Lite, 1.4, 1.5_rc0, 1.5_rc1, 1.5 final, 1.5.1_rc2
* The root folder has an example using one of the smallest Prototype
1.5 Final forms in this package.
* prototype.js is
Michael Peters is correct.
Since forms of type application/x-www-form-urlencoded *do not* add
brackets to inputs so neither should this method.
PHP is my primary server side language and our form elements are named
'foo[]' if we want them to become an array on the serverside.
Its up to the dev
I noticed that in the String.prototype.evalJSON you create a new
instance of SyntaxError.
I don't see this object in the code.
I may be showing some ignorance to error detection and alert
mechanisms.
--~--~-~--~~~---~--~~
You received this message because you are
Ahh I see my Firebug picks it up.
IE is silly about it (doesnt give the error message says an exception
was thrown but not caught).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to
Hello,
I just upgraded my Prado PHP Framework version which includes
Prototype 1.5.1rc2 (not rc3)
and I noticed some of my Ajax calls were not being returned properly
on further
inspection I noticed that the toQueryParam method was not outputting
the proper data.
Here is the string I had.
Hiya Mislav,
I tested in a Prototype 1.5.1rc3 sandbox and the issue appears to be
fixed now.
Thanx
Rock!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
Hi Guys,
I have updated ProtoPacked to include Prototype 1.5.1_rc3
Files are now compressed with Dean Edwards Packer v3.
This avoids high ascii encoding which the current version of Safari
and Omni web choke on.
The smallest 1.5 version is 11.8kb gzipped (no js compression, using
packers shrink
Changed Prototype 1.5.1_rc3 to rc4
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send
ProtoPacked 2.12:
Changed Prototype 1.5.1_rc4 to the stable release
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To
Hello Richard,
First, this is not a $A() issue.
When you called ''With Reporter' you wont get scritpaculous because
your code is
executing before scriptaculous is even rendered via the dom. (top
down)
The dom should be there onLoad though. If not try:
Event.observe(window, 'load', function(){
Hello Richard,
This is the source of $A:
var $A = Array.from = function(iterable) {
if (!iterable) return [];
if (iterable.toArray) {
return iterable.toArray();
} else {
var results = [];
for (var i = 0, length = iterable.length; i length; i++)
Position.withinIncludingScrolloffsets() //with
lower case O in offsets
was it always a lower case 'O' in offsets, that seems new to me.
-jdalton
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group
Hiya,
I have noticed some are combining ProtoPacked with Scriptaculous
(http://protoculous.wikeo.be/) and thought I would make my own.
This updated pack includes compressed versions of Prototype: 1.4, 1.5,
1.5.1 and Scriptaculous: 1.7.1_beta2.
There is also a Protoculous option as well
Missed one of the O's on page:
http://www.prototypejs.org/api/position/withinIncludingScrolloffsets
8P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
I just noticed you have 2 different pages:
http://www.prototypejs.org/api/position/withinIncludingScrolloffsets
(needs the fix)
AND
http://www.prototypejs.org/api/position/withinincludingscrolloffsets
(already been fixed)
--~--~-~--~~~---~--~~
You received
Thanx for clearing that up.
I will have to check out Mephisto sometime 8).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
Updated v2.14:
Added support for Scriptaculous 1.7.1_beta3.
Added more links to info on JavaScript concatenation and
compression.
To download go to:http://groups.google.com/group/prototype-core/files
Click on protopacked_v2.14.zip
--~--~-~--~~~---~--~~
Hi guys,
I was looking through some of my old source code and noticed that I
added a modified Object.extend method.
Apparently the normal for-in loop used in the Object.extend guts
ignores methods named 'toString'.
I fixed this:
/* * * * * * * * * * * * * * * * * * *
*
*Prototype
Honestly, I don't care about the core dev teams inner soul searching
on what they want to do.
I just merely posted this to point out that the for-loop doesn't
iterate over the method 'toString'.
I am happy with my solution and if it's left up to the Devs to fix on
an 'as needed' basis I am
My comment was not intended to be malicious, but rather sarcastic.
Tone and inflection don't translate well to text.
As always keep up the great work! 8P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype:
Hi Guys,
I was using Event.element(event) in an image onload observer and I
noticed that in IE,
it would return the Image element while in FireFox it would return a
[object HTMLDocument].
I used the guts of the Event.element and changed it to $
(event.currentTarget || event.srcElement)
and that
I created the ticket. It can be found here:
http://dev.rubyonrails.org/ticket/8652
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
I totally dig your ideas.
Before you popped on the scene I was using my own Control.tool.
Now I conform mine to fit yours. Rock on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to
I am passing along a prototype blog comment.
I have not checked the source yet.
I can verifiy there is no documentation for isJSON().
Les posted in the prototype blog:
Is the doc updated? I see a new String method isJSON(), but there is
no doc for it.
Hi All,
This release adds support for Prototype 1.5.1.1
To download to go http://groups.google.com/group/prototype-core/files
and select protopacked_v2.15.zip
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Thanks Mislav ! 8)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
I don't see the harm in adding the second condition element
instanceof String
you could use :
if(element element.constructor == String)
This works for both foo and new String(foo);
I find that it is faster than using typeOf.
I have made very JavaScript heavy applications and noticed that
If you run it more than once you get different results. Reguardless of
this benchmark (I got it to show .constructor was faster consistently
more times, IE)
Its a method of detecting a string that will fix the issue.
--~--~-~--~~~---~--~~
You received this
And using : http://gfx.neohub.com/benchmark/creator.html
Firefox: slower by alot using constructor
IE : faster by alot using constructor
return ('hi'.constructor == String);
vs
return (typeof 'hi' == 'string');
IE: faster by alot using constructor
Firefox : mixed (sometimes slower sometimes
Slightly OT,
While you are looking at mooTools, you may want to look at their
custom Object events and
Ryan Johnson Object.Event: http://livepipe.net/projects/object_event/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I find using the object is easier to read, also looking at the source
its really meant for objects to be used, you got lucky in that
object['days'] is also the same syntax used by array[0]. That is why
indexes would work for your array and not for the object and why the
property 'days' would
Thanks for in-dept blurb on the differences between the JavaScript
Object object and Array. I was trying to dumb it down but your
explanation is better suited.
As for hacky I was merely looking at the source and the variable
named object that it expects as the first argument. Seems to me that
it
While doing that, we're embracing some
already established conventions from other languages in order not to
re-invent everything.
With that quote I want to reiterate that MooTools already has
Inheritance.
Its inheritance mechanism was also developed from Dean Edwards' Base
class.
MooTools has
Hello,
I was looking for a quick way to replace one element with another and
thought surely Element.replace().
But when I looked up the API it's second argument is a string (which
is very very cool, don't get me wrong).
What about for element.parentNode.replaceChild(newElement, element);
ok cool, I will just mod my own until then.
thanx (wow responces are fast).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
@Mislav - Yes I will try it with the selector.html (when I have time
to find it).
For now I was able to recreate the problem here:
html
head
titleSelector Test/title
script type=text/javascript src=prototype.js/script
script
Element.addMethods('DIV', {
customMethod :
I just tested Opera in the selector.html and no errors reported.
I suspect this situation is not present in that file.
I did however find an error in IE 6 with the testSelectorWithChild :
5 assertions, 0 failures, 1 errors
TypeError: Object required([object Error])
Found the bug:
its in document._getElementsByXPath();
need to change:
results.push( query.snapshotItem(i) );
TO
results.push( $(query.snapshotItem(i)) );
I will create a ticket and post the fix.
--~--~-~--~~~---~--~~
You received this message because you
ticket and patch posted:
http://dev.rubyonrails.org/ticket/8843
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To
You can declare more than one variable at a time via the use of the
comma.
Look under The Name of a Variable
http://www.functionx.com/javascript/Lesson04.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Snap!
Tricky, they define it again for WebKit and IE.
Follow the info here :
http://www.prototypejs.org/contribute
and create a ticket 8)
You can post back here with a link to the ticket if you wish.
--~--~-~--~~~---~--~~
You received this message because
I modified a similar ticket dealing with code in the same area:
http://dev.rubyonrails.org/ticket/8851
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
new in this release:
v2.16:
removed bragging rights files (they seemed to distract)
added support for Prototype 1.5.2_pre0 and Scriptaculous
1.7.1_beta3_rev7191
the formatted Prototype 1.5.2_pre0 contains additional fixes for
the following tickets:
I really dig this idea and would find it very useful 8)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe
Hi All and Mislav 8P,
I figured I would start a general post that allowed for a continued
updated thread to inform of sites picking up the Prototype and Scripty
tourch.
As I have mentioned.
http://www.newgrounds.com has,
as well as new game video capture sharing startup
http://www.geevee.com/
That would be my bad (I removed the loading methods because everything
is included in 1 one, I will add them back so that you may include
your own files with it. (expect the update within the day)
--~--~-~--~~~---~--~~
You received this message because you are
ok I have fixed it.
http://groups.google.com/group/prototype-core/files
src=protoculous.js?load=addon
src=protoculous-packer.js?load=addon
src=protoculous-shrinkvars.js?load=addon
src=protoculous-whatever.js?load=addon
should all load addons/extensions
In the future email me directly instead of this core list (as
mentioned in the read_me_first.txt the compressed versions of
Prototype/Scriptaculous/Protoculous are not supported by Thomas Fuchs
or the Prototype Core Dev team.
--~--~-~--~~~---~--~~
You received
I added a ticket + patch file
http://dev.rubyonrails.org/ticket/9140
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To
Repatched per Mislavs request:
http://dev.rubyonrails.org/ticket/9140
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To
Hiya,
Since I discussed some of the issue with the new
Event.observe('contentloaded', ...);
http://groups.google.com/group/prototype-core/browse_thread/thread/7585f524ad59a987
1) window.onload trigger being called while still executing
contentloaded callbacks...
2) preserve proper first in
Thanx :),
Mislav what you saw as semi colons after conditionals was probably a
trick of the eyes (though the first patch may have had one as a typo)
with code like this: http://pastie.caboo.se/85947
As to semi colons after things like:
var foo = function(){
alert('foobar');
};
This example
by the way jdalton = John-David Dalton
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group
I was in a similar situation where a pluck like setter would have been
great.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
Both would be excellent uses for it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send
Also is there any validity in the concern that without proper checks
the window.onload trigger could happen in the middle of executing the
contentloaded observers (esp. in IE when you are emulating a
contentloaded event)?
Do you have a way to ensure proper first in first out order or event
In some cases, other functions build off of these base functions and
the slow down can eventually grow For example using large arrays
or calling a method 1000+ times that make heavy use of the Enumerable
helpers is slow compared using a traditional for loop.
I think that using the array is
Hello Andrew,
I brought this up in May 07:
http://groups.google.com/group/prototype-core/browse_thread/thread/55d404c67e9ec05b/
Mislav Marohnić and Tobias Haagen Michaelsen dig a bit further into
it.
I also posted a fix for it in that thread.
Hi Thomas,
I concede the $w() point.
I did not know that using brackets is slower.
How much so and are there benchmarks for that claim?
I agree that:
If(blah) return;
Is fine, I do little stuff like that in my code, but lets use a real
example:
http://pastie.caboo.se/private/y6hmgibpglrlwlknms
I just saw a post on this Opera bug.
I don't suggest a fix or anything just wanted to let you know:
http://my.opera.com/nicomen/blog/2007/07/08/domcontentloaded-gotcha-with-external-stylesheets
--~--~-~--~~~---~--~~
You received this message because you are
Guys,
the code document.write(script id=__onDOMContentLoaded defer
src=//:\/script);
is for IE mainly and anything else that falls into that category. No
need to work for the others.
The reason he uses '//:' its a trick that works for both HTTPS and
HTTP. Its less code than doing all
I forgot to mention that without that little trick on an HTTPS site in
IE you get an ugly warning dialog...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email
I like the idea of having one handle for those cryptic error codes.
Would onNetworkError be different than onException ( does the
onException get called as well??)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Thanks Mislav,
In prep for my reply I was looking through the 1.6_rc0 release and I
have to give you guys a HUGE hand on the event firing using a real
event object.
Very very cool stuff...
I am trying to think of the easiest way to explain the problem and the
solution.
Take for example my old
But you could prevent it if you managed them in an array... as I
discussed.
As well as have the rest of the benefits your current implementation
lacks...
The only core difference between my implementation and the current 1.6
is that I send mine to a js array and 1.6 still relies on the browser
In my code this was an issue because I had a forl oop iterating over
the DOMContentLoaded observers and,
I had a case where the loop would be half through and the window
onload would fire,
calling code that hadent yet been inited in the DOMContentLoaded
observers.
Becuase 1.6 uses a real event
Hi all,
I was just reading on ajaxian that Steven Levithan has done some
benchmarks and found that innerHTML's main bottle neck is in its
destruction of existing nodes/elements. He has posted a new method. He
has benchmarks and a performance test as well. I figured it would be
an interesting
I have noticed there are alot of places in the Prototype 1.6 where
you use Element.extend() vs $(). Is there a performance reason for
this, becuase it does add to script size..
I will happily make a patch if a course of action is decided on either
way.
Mislav, I am just giving you a hard time :P
I also noticed there is inconsistent use of single quote vs double
quote... seems more single thant double (I prefer single quites unless
a newline character is involved... I will fix that as well if you
like.
Hey noc,
I cannot reproduce what you are seeing in my firefox v2.0.0.1
I am using Prototype v1.6 RC0
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to
I would assumed not fixed until it is included in the source by the
devs...
I would let them dictate when they fix something.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this
I created a ticket and a patch a while ago about this very thing.
[PATCH] document._getElementsByXPath() doesnt grace elements with $(),
causes issue in Opera 9.21
http://dev.rubyonrails.org/ticket/8843
--~--~-~--~~~---~--~~
You received this message because you
Recently there was more discussion about contentLoaded on ajaxian.
A couple of new ways of detecting dom load was mentioned.
http://ajaxian.com/archives/more-fun-with-domcontentloaded
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
very cool thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
I am a bit confused... what would size provide on other objects??
Also what is to stop you from adding the 50 bytes to your own code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype: Core group.
To post
75 matches
Mail list logo