Displaying 20 results from an estimated 3000 matches similar to: "help with each"
2005 Dec 20
9
Performance issues with Prototype
Hi
I''ve tried to use Prototype as a base for few large intranet
applications I''m working on. Unfortunately I encountered some
serious performance problems when working with Internet Explorer.
It''s really sluggish when it comes to DOM operations and Prototype
could really benefit from some small optimizations. I created a
testase to show a difference between my optimized
2006 Jun 20
4
Prototype Array bug??
function CreateTOC(){
var $aTOC = document.getElementsByClassName(''tocitem'');
var $temp = '''';
if(isArray($aTOC)){
for($t in $aTOC){
$temp += ''t='' + $t + '', '' + $aTOC[$t].name +
''<BR>'';
}
$(''test1'').innerHTML = $temp;
}
}
When I run this code
2006 Feb 23
25
reloading fragments of pages
Hello,
I have a treeview, that works with scriptaculous in order to load the nodes
dynamically.
I also have in the main part of the page, a table with the list of elements.
The lists of elements can be drag-dropped on the treeview in order to move
them around
(they are also draggable on other parts of the page)
I need though, to refresh the treeview to reflect changes when a folder was
moved
2006 Mar 15
4
sub-selection with $
Hello,
I have 2 navigations ( mainnav and subnav ) with 2 lists
List have same names ( li0 li1 li2 )
What is the best way to select li1 of subnav with prototype 1.4 in this
case ? I just want to hide/show it
Thanks
<div id="mainnav">
<ul>
<li name="li0"><li name="li1"><li name="li2">
</ul>
</div>
<div
2006 May 30
4
Limiting getElementsByClassName to specific nodes and entities
I''m currently using "The Ultimate getElementsByClassName"
(http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/)
instead of the Prototype version. This version seems to be faster since it
lets you specify the starting node and the type of entity. For example:
var widgets = getElementsByClassName(document, "ol", "tree");
Is
2006 Jan 18
8
BlindDown on a div with overflow: auto...
I have a div with overflow: auto... BlindUp works fine. But BlindDown
simply waits the duration and shows the div at full size (no blinding
down effect). If I remove overflow: auto it works fine. Why would this
work for BlindUp but not BlindDown?
Sincerely,
Ryan Gahl
Design Engineer
Camtronics Medical Systems (an Emageon Company)
Ryan.gahl-nlycWCgr5/vuufBYgWm87A@public.gmane.org
2005 Dec 17
17
problems with quotes and escaping
First of all I''d like to say thanks for all the great work everyone has put
into scriptaculous,
I''m having a lot of fun playing with the framework, and easily moving into
Web 2.0 territory.
I''ve just hit a snag on my project though.
So here''s my code:
...
var newEvent=
"<div
2007 Feb 17
4
childrenWithClassName
Hi,
i need some help :)
Does anywhere exists a fix for a code (scheme) like this:
----------------
var blas = document.getElementsByClassName( ''foo-class'', ''foo-id'' );
blas.each
(
function( bla )
{
var subbla = Element.childrenWithClassName( bla, ''subbla-class'',
true );
}
);
--------------
This scheme worked well till script.aculo
2006 Nov 03
4
Bug? IE, getElementsByClassName and "length"
So, I have this form/datagrid thing. I want to have a button that
clears the fields (not a reset, which would set them to the default
state, I want them blank.) For various reasons, getByClassName seemed
the best way to deal with this.
Everything was fine on Moz/Firefox. Safari seems fine. But IE...
Some detective work later, it seems that the problem is caused by
*another* field on the page.
2006 Feb 09
6
inPlaceEditor ISSUES!
I have run into a problem that I have never created before. I am
using the scriptaculous inPlaceEditor
If I hit the cancel button, and rehit the editor it then creates two
textboxes, and if I repeat three input boxes, etc.!
Must be stupid simple, but I AM STUMPED!
DECO
2007 May 28
7
$$ is slooooow in IE
While $$ and getElementsByClassName are ridiculously speedy in Firefox
(thanks to XPath), I''m finding both functions to be intolerably slow
in IE. The page I''m working with has fewer than 1000 elements --
doesn''t seem THAT big -- and it''s still taking upwards of 4 seconds
(!) to pick out the right ones.
Are there documented problems with particular
2006 Jan 12
6
Draggable performance issues
Using the script.aculo.us Draggables, I''m noticing they are a bit less
than fast. I drag them around on the screen and they jump and glitch to
catch up with the mouse.
Has anyone else noticed this, and are there any optimizations that have
been identified that I can apply? I''m using v. 1.5
Sincerely,
Ryan Gahl
Design Engineer
Camtronics Medical Systems (an Emageon
2006 Feb 17
7
Released: window dialog script
Hello,
First, please let me thank you to Ryan Gahl and Jerod Venema for their
patient help - really appreciated their input - I couldn''t have done this
script without their support.
Today I released a dialog script based on scriptaculous and prototype. A
demo can be seen here: http://net4visions.com/dev/dialog/dialog.htm . Please
see the readme and changelog file for details. Your
2006 May 26
25
migration to rails
Hi, I''m a PHP developer and I''m think about migration to rails...
my big problem is about printing web Reports, well I could not found a
good thing to help me with this...
Does Ror or some other ruby project have some thing to help about
make/print database reports?
tks
2006 Feb 27
30
Calendar widget
Has anyone made, or does anyone know of, a nice calendar control based
on prototype/scriptaculous out there yet? Thanks in advance!
Sincerely,
Ryan Gahl
Design Engineer
Camtronics Medical Systems (an Emageon Company)
Ryan.gahl-nlycWCgr5/vuufBYgWm87A@public.gmane.org
262-369-3251
The information transmitted in this electronic mail is intended only for the
person or entity to which it
2006 Jun 21
26
Implementing a boolean "switch" in a Class
I need a single boolean which would be "globally" accessible to all
instances of a class. Seems like the boolean should be in the class
prototype, but I was troubled by the difficulty of setting the prototype
boolean to true. Maybe I''m missing something?
var MyObject = Class.create();
MyObject.prototype = {
bSwitch: false,
... other methods and properties
}
var oMyOb1
2006 Mar 17
12
Exception in Javascript console in Firefox 1.0.7
Has anyone else seen this?
Error: uncaught exception: [Exception..."Component returned failure
code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)
[nsiXPCComponents.lookupMethod]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location:"JS frame ::
chrome://global/content/XPCNativeWrapper.js :: anonymous :: line 91"
data: no]
I got that output to the
2005 Dec 14
11
Prototype 1.4 bug?
Hi and greetings to all... I''m new to the community and I have a small
problem.
I just downloaded the latest prototype.js lib from the darcs repository.
When I included this file in my HTML page, is get the following error:
Line: 471
Char: 2
Error: Object doesn''t support this action
Code: 0
Char 2 at that line number is a closed parantheses for the
2006 Jan 03
45
Status of Prototype
Hi *,
we are using prototype in Apache MyFaces as our javascript library of
choice. Recently, there has been much discussion on our mailing list
as to the usability of prototype in a dynamic environments where
several javascript libraries are used.
The critics of prototype argue that the prototype objects are not
namespaced - and that prototype extends basic javascript-objects with
method names
2006 Mar 03
11
event.keyCode broken in prototype?
I ran 2 tests. One using proto''s Event.observe, and another using an
in-line handler of the "keydown" event in a textbox.
Using .bindAsEventListener, the event.keyCode is always returning a
capital letter, no matter what. The in-line event handler returns
lowercase vs. uppercase correctly... What''s going on?
I guess I find it hard to believe no one has tried