Displaying 20 results from an estimated 400 matches similar to: "Prototype Array bug??"
2006 Jun 21
3
getElementsByClassName
How should I expect the performance of this function to be?
I wrote this code:
function CreateTOC(){
var $aTOC = document.getElementsByClassName(''tocitem'');
if(isArray($aTOC)){
$temp = ''<INPUT TYPE="SUBMIT" NAME="cmdSave_Update"
VALUE="Close" CLASS="menubuttons"> '';
$temp += ''<INPUT
2007 Sep 18
4
Prototype.js and Multidimensional Arrays
Hi there,
this code works only fine , if i dont embedding the prototype.js in my
document:
<script type="text/javascript">
var myCheckBox2 = new Array();
myCheckBox2[''Ort''] = new Array("hamburg","berlin","hannover");
myCheckBox2[''Art''] = new Array("programmierung","support");
2006 Jun 27
19
Event.observe
I''m not sure if I''m understanding this correctly.
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
Event.observe(''mes_appearance_s0'',
''onchange'', function(e){ alert(''changed me!'') });
Event.observe(''headinjury'', ''click'',
function(e){
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server
2007 Sep 21
1
Weird data from evalJSON
I am trying to have prototype perform a request and return to me a
javascript object representing the json string returned by the
request. I want to iterate over the contents to print each object in
the json string. The value of transport.reponseText in onSuccess is
what I would expect. But once I try to perform evalJSON() on this
text it gives me a bunch of extra function()s when i try to
2008 Apr 22
1
Problem with Prototype 1.6.0.2, Opera 9 and Form.serialize()
Hello,
following code fragment given:
~~~
function jsPostAppend(script, form_id)
{
if(form_id)
//parameters=''&'' + $(form_id).serialize() // first flavour
parameters=''&'' + Form.serialize($(form_id)) // second flavour
[...]
~~~
This works perfect for FF2, IE7 and Safari3 (in both flavours).
With Opera 9.x, I get the following javascript errors:
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 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and
turn it into an associative array?
Basically it would take something like this:
<body>
<item>
<id>1</id>
<name>Bob</name>
</item>
<item>
<id>2</id>
<name>John</name>
</item>
</body>
And turn it into something like this:
{
2014 Aug 08
2
[PATCH 1/3] nvc0/ir: add base tex offset for fermi indirect tex case
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
.../drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
index f010767..4a9e48f 100644
---
2012 Jun 09
3
Guild Wars 2 hangs on start
Hi,
I would appreciate any help with getting Guild Wars 2 to run on Debian Linux (KDE, testing). When I hit the "Play" button on the start screen, the music starts to play but the GW2 window only shows the underlying console window. It just sits there and has to be killed manually.
Specs:
AMD Athlon 64 X2 4400+
4 GB RAM
GeForce GTX 260
Nvidia driver 295.53
Wine 1.5.5
Output from
2006 Jun 26
1
Parent/Child Tags
IS there a way to determine that the parent or child tags are for a
given element?
_____________________
Thanks,
Keith Davis - MCSA, A+, N+
P.R.I.D.E. - Director of Computer Services
www.pridedallas.com
Work (214) 351-6600 ext. 119
Mobile (214) 906-5183
_______________________________________________
Rails-spinoffs mailing list
2009 Feb 16
5
[Colin McRae Rally] Crashes the X-Server?!
Hi,
yesterday I created a bug report for this, but the wine-devs said, that wine can't crash the x-server (yeah, sure...) so I wanted to ask if someone knows how to get a log of what is happening there?!
Things to make the xserver crash: simple start the game, just after double click the x-server crashs and I've to reboot, ctrl-alt-backspace doesn't do anything.
I tried wine
2014 Jul 05
1
[PATCH 1/2] nvc0/ir: use manual TXD when offsets are involved
Something about how we're implementing offsets for TXD is wrong, just
flip to the generic quadop-based implementation in that case.
This is the minimal fix appropriate for backporting.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: <mesa-stable at lists.freedesktop.org>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 3 ++-
1 file changed, 2
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 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 Mar 16
20
help with each
can you please tell me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName(''editView'');
if (items.length > 0){
items.each(function (result){
thisid = result.id;
thiskey = thisid.replace(/se_item_/gi, '''');
2007 Dec 17
6
Checkbox array and Ajax.updater
Hello all,
I have some checkbox array like these:
<input type=checkbox name=list[] value="1">Java<br>
<input type=checkbox name=list[] value="2">JavaScript<br>
<input type=checkbox name=list[] value="3">ASP<br>
<input type=checkbox name=list[] value="4">HTML<br>
<input type=checkbox name=list[]
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 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
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