: (effect.dims[0] -
effect.element.clientHeight) + 'px'});
},
This almost did what I was looking for, but I believe a clear div is
still moving upward causing the effect to start out good and end
completely wrong.
Thanks
Ryan
--
You received this message because you are subscribed
The answer is quite simple: because it's convenient.
Convenience is an interesting thing. You seem to be a logical type,
postulating that there must be something beyond just convenience here,
because if it can be done without this construct, why add the construct,
right? That takes the human part
On Fri, Mar 18, 2011 at 9:30 AM, T.J. Crowder t...@crowdersoftware.comwrote:
Prototype's magical `$super` comes at a marked runtime cost
Just want to point out that the marked runtime cost is only at class
definition time, not instance creation nor method call time. So yeah, the
performance
On Thu, Nov 18, 2010 at 9:26 PM, RobG rg...@iinet.net.au wrote:
Using onclick or onchange for a select element is a bad choice
No, using onchange is actually the correct choice. He's using onclick on
option elements instead of onchange (again, the correct event) on the select
element.
--
On Thu, Nov 18, 2010 at 9:36 PM, Ryan Gahl ryan.g...@gmail.com wrote:
On Thu, Nov 18, 2010 at 9:26 PM, RobG rg...@iinet.net.au wrote:
Using onclick or onchange for a select element is a bad choice
No, using onchange is actually the correct choice. He's using onclick on
option elements
myselect = Event.element(e); // e === the select
var val = myselect.options[myselect.selectedIndex].value;
note: pseudocode but you should be able to get it from there.
---
Warm Regards,
Ryan Gahl
On Wed, Nov 17, 2010 at 10:33 AM, Phil Petree phil.pet...@gmail.com wrote:
Amen! Well said
Sure... but my point was simply that dude was doing it wrong listening for
click events on option elements, which is why he's having the issue he's
having.
---
Warm Regards,
Ryan Gahl
On Wed, Nov 17, 2010 at 2:38 PM, Walter Lee Davis wa...@wdstudio.comwrote:
On Nov 17, 2010, at 1:16 PM
clicked.
It would appear that this is a simple task, but having never worked
with prototype, what I've tried so far hasn't worked.
If anyone could point me in the right direction, I'd appreciate it.
Thanks,
Ryan
--
You received this message because you are subscribed to the Google Groups
Oops, sorry for the weird formatting...
On Mon, Aug 3, 2009 at 6:38 PM, Ryan Gahl ryan.g...@gmail.com wrote:
Let me suggest the module pattern - which not inconsequently also enables
true private fields and methods (just because it seems you're looking for
alternative patterns). Also, since
Louis,
Your error is that you should not be using the new keyword before
Class.create()
Class.create() is a helper function that essentially just returns a
function. Note, in js, all named functions are considered constructors.
Obviously, a function that has no prototype properties and sets not
You might want to try WireIt: http://javascript.neyric.com/wireit/
It seems like a much more complete project.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Mon, May
I want to rewrite getOffsetParent of element object.
I created a js file which is loaded after prototype file, and within
it , I have following code
//
Object.extend(Element, {getOffsetParent : function(element) {
alert('get new offset');}});
/
which
)
if (Element.getStyle(element, 'position') != 'static')
return $(element);
return $(document.body);
}});
this is a patch for prototype1.6.0.3 bug #11007
On May 1, 3:44 pm, ryan ryansu...@gmail.com wrote:
I want to rewrite getOffsetParent of element object.
I created a js file which
to be scope corrected
via .bind().
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Sat, Apr 11, 2009 at 4:46 PM, kstubs kst...@gmail.com wrote:
T.J. Ryan,
First
replies :)
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Fri, Apr 10, 2009 at 5:39 AM, T.J. Crowder t...@crowdersoftware.comwrote:
Hi,
this.MSOFindForm.getInputs
That's not bind(), that's Event.observe(). bind() is general-purpose,
knows nothing about events.
D'oh! That's an obvious blunder in my reply. Thanks :)
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile
this is a script from an open source script.
there is a preInitCallback defined as boolean(i mean, it's inited as
fault), but in the initGrid function, it's working like a function
(this.preInitCallback(this);). So is this a special usage of
prototype? this code confused me so much, any help will
...
var func = { test: function() { return this.name; }.bind(this) }
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Thu, Apr 9, 2009 at 2:36 PM, kstubs kst...@gmail.com
it as a named param). If
not, try the legacy .bindAsEventListener() instead of .bind().
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Thu, Apr 9, 2009 at 3:59 PM, kstubs kst
Let's back up... give me the whole blob of code... sorry I thought func was
being executed AS an element event handler, but it's clearly not. If you
paste in the rest of the (relevant) code as it sits now I can help you fix
it up.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
);
return;
}
// if we made it this far, call the find
__find(input);
}
Ultimately, though, you should be attaching your listeners via javacript,
which in this case will probably make life a little easier.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
pattern, but that's a whole other
topic).
Make sure you take a look at the API docs at prototypejs.org too.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Wed, Apr 8
What this all means is that these 2 expressions are functionally
identical (considering that they are called from within the same
execution context):
myElement.observe('click', onClick.bind(this));
myElement.observe('click', onClick.bindAsEventListener(this));
FWIW, this was not always
So, (sorry not to capture all this in a single post)...
To re-iterate, Kangax, you _should_ be using .bindAsEventListener in your
first case if you want to guarantee backwards X-browser support.
On Sun, Mar 15, 2009 at 9:52 AM, Ryan Gahl ryan.g...@gmail.com wrote:
On Sun, Mar 15, 2009 at 9
What do you mean by backwards X-browser support?
Come on dude, really? You didn't get what I was saying there? I meant cross
browser support, including older browsers. Even if I was wrong on the
details, I thought that phrase was fairly self explanatory... guess not.
Just like I said, IE
your (function(){})(); module...
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Sun, Mar 15, 2009 at 1:24 PM, seasoup seas...@gmail.com wrote:
Is it possible
I call a PHP Page !!
That's your error :)
(kidding, of course)
... As TJ said, we need more than details than I'm trying to do X, and it's
not working, what do I do??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
today as I'm in a very crunchy
crunch time on a project right now... but needless to say, I'll definitely
be throwing your implementation into our framework to see what gains we can
get (in those places we still have .bind()'s peppered around).
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
If we recast our example to use a named function for the handler:
function init() {
var container;
container = $('container');
hookUpHideables(container);
container.show();
function hookUpHideables(p) {
p.select('.hideable').invoke('observe', 'click',
Have you tried using thead and tbody, and placing the overflow setting on
the tbody?
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Wed, Mar 11, 2009 at 11:21 AM, Lee
Has that been tested with deferral?
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Wed, Mar 11, 2009 at 1:13 PM, Tobie Langel tobie.lan...@gmail.comwrote:
Actually
a bunch of binding, I just
create the var me = this; variable at the top of whatever scope I'm
currently in.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
On Tue, Mar 10
, args.concat($A(arguments)));
}
}
So in all cases, it's less overhead to just not use .bind(). It's purely a
convenience method.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com
for the function is not
set aside until it's actually needed (assuming you use var foo = function()
{}; instead of function foo() {}, as the latter results in memory
allocation immediately with some interpreters). So it _can_ be good design.
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
understandably
takes a long time.
Thnx In advance,
dj
--
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
--~--~-~--~~~---~--~~
You received
--
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl
BTW... very nice looking site there :)
On Thu, Feb 12, 2009 at 1:39 PM, Ryan Gahl ryan.g...@gmail.com wrote:
The problem is that you are using defer in your script include tags,
which in IE makes the order they load an indeterminate thing. So what's
happening is scriptaculous is trying
to incrementally add functionality to the client as
they move around the site.
Regards,
Richard Quadling.
--
-
Richard Quadling
Zend Certified Engineer :
http://zend.com/zce.php?c=ZEND002498r=213474731
Standing on the shoulders of some very clever giants!
--
Ryan Gahl
Ugh... I had a lot of typos there. Excuse me as I drink my morning coffee
here :)
On Wed, Jan 28, 2009 at 9:16 AM, Ryan Gahl ryan.g...@gmail.com wrote:
More specifically, make sure it returns javascript (not just the data), and
uses on of those content types...
There is a pattern
Heh... nope, you got it. Just don't forget to include the semicolon at the
end when you return the jsonp version.
On Wed, Jan 28, 2009 at 9:37 AM, Richard Quadling
rquadl...@googlemail.comwrote:
2009/1/28 Ryan Gahl ryan.g...@gmail.com:
Ugh... I had a lot of typos there. Excuse me as I
in xyz.com/home.jsp. In this page i want to call new
Ajax.Request('http://www.abc.com/result.jsp?id=1001')
--
Jerod Venema
Frozen Mountain Software
http://www.frozenmountain.com/
919-368-5105
--
Ryan Gahl
CEO
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com
PROTECTED] wrote:
Oh wow...
Hate to be the bearer of bad news Ryan, but not really
You can attach an event listener to an area object, which you could
attempt to harness a fade, but that would require you to make a lot of
edits to the image maps. Secondly, the entire page is one image, if
you
/toy301.html
Word, thank you if any one can help me.
I've got a ton of pages to edit!
Ryan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email
vague promises, as so many
attempts were made and slowly disappeared.
More on this soon...
whiteShadow
--
Ryan Gahl
Manager, Senior Software Engineer
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
Im looking to create a single ajax post request and send multiple
forms as parameters. The form id's are created dynamically thus I
cannot list each form as a parameter within the javascript code.
Instead I've tried:
parameters: $$('form').serialize(true),
...but no luck. Form elements across
.
Can anyone please guide us on why the ajax(XHR)
calls/requests are
not working when placed on other doman.
Regards
rama
--
Thanks,
Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt
--
Ryan Gahl
Manager, Senior Software Engineer
Nth Penguin
46 matches
Mail list logo