similar to: IE Problem with document.getElementsByTag

Displaying 20 results from an estimated 3000 matches similar to: "IE Problem with document.getElementsByTag"

2005 Nov 19
16
Looking to develop for scriptaculous
Hello All, I have just joined rails-spinoffs mailing lists and I would like to introduce myself. My name is Casey and I am a professional Web and J2EE developer currently working out of New York. I am very interested in contributing to the Scriptaculous javascript library. For the past few months I have been using certain functions in the library and I have to say that it has taken my
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 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
2007 Feb 12
18
document "expando" properties broken in Konqueror
I noticed that some of my event handlers and scripts evaluated in ajax responses didn''t work in Konqueror (3.5.5). document.getElementsByClassName is not defined in these contexts. I can work around this, by saving document.getElementsByClassName in a (namespaced) global variable once and reassigning it before each use. Still, this misfeature is annoying and not restricted to this
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 Apr 17
2
RE: document.getElementsByClassName (prototype) andElement.childrenWithClassName (scriptaculous) redundancy?
Isn''t the difference that the scriptaculous one only gets child nodes from the node you specify, whereas the prototype one gets all in the entire document? Still, it would be nice to just have the one, and let you pass in the document element if you wanted all of them. Just guessing, really. I haven''t looked at the code in question. Greg > -----Original Message----- >
2006 Jun 19
13
PNG and Alpha-Transparency
Is there a prototype / extension which will assist in cross-browser support of PNG images? http://www.alistapart.com/articles/pngopacity/ It seems to me that a class could be developed which would zip through the DOM and make changes where needed for IE 5.5 / IE 6.0 to handle PNG images. I don''t want to write one if it''s been done before. Sam
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 Apr 23
3
getElementsBySelector problem in IE
I''m having this problem with IE and getElementsBySelector, but am a relative js novice, so quite possible -- likely even -- that I''m doing something stupid. Either way, a fresh pair of eyes would help. Basically I''m duplicating a fieldset within a form (so you can upload more than one photo). [BTW, the fieldsets have a CSS id which relates to the object id of the
2006 Mar 04
1
RE: Question about event listener highlighting withchild elements
1. Create a separate class that has your highlight/unhighlight behavior in it, and extend just the element you want to highlight with that class... like this (also allows you to easily apply this behavior elsewhere when you need it in the future): Object.extend(this.el, HighlightBehaviorClass.prototype) 2. When defining your event handlers, assign them to variables so you have a
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 Jun 14
0
weird toggle behavior on IE
Hi, Just found out this weird bug in IE (or I probably should say IE bug that needs workaround?) This works in IE, FF document.getElementsByClassName(''box'').each ( function(e) {new Effect.toggle(e, ''blind''); } ); But this doesn''t work in IE document.getElementsByClassName(''box'').each ( function(e) {new Effect.toggle(e,
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, '''');
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 Apr 07
4
Effect.toggle error in 1.6.1
I have this line of code: new Effect.toggle(document.getElementsByClassName(''modarea'', Event.findElement(ev,''li'')), ''blind''); I''ve confirmed that the Effect.toggle is indeed getting the proper element, however, I''m getting this in my javascript console: element.visible is not a function (effects.js: line 153) I
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 Apr 17
1
document.getElementsByClassName (prototype) and Element.childrenWithClassName (scriptaculous) redundancy?
Is there a reason scriptaculous provides what appears to be a redundant function? The reason I''m asking is that it only seems to be used twice throughout all of scriptaculous, and it doesn''t appear to work properly (for some reason it''s returning the actual element, rather than an array with all of the elements) If there is no reason, I''ll modify it to use
2001 Jan 15
2
BAD PASSWORD: it is based on a dictionary word
A non-root user is trying to change their password but cannot because of the message: BAD PASSWORD: it is based on a dictionary word They swear its not true. Anyways, I was just curious where (if anywhere) the config file lies for this functionality. Do you know? -mike
2006 Feb 24
8
possible Slide and Blind IE bug
Hi, I''m new to this list, new to script.aculo.us but pretty comfortable with javascript. I''m trying to get a combination of Effect.SlideUp and Down and Effect.BlindUp and Down to well... it''s hard to describe, maybe have a visit here (try in firefox first): http://bruno.biosci.arizona.edu/occa/test.html Click on "next month" a couple times, then click on
2005 Dec 07
3
Addressing a class, rather than an id?
Good day, I''m trying to use the slider control to resize a pile of images on a web page. Clever, huh. Bet cha didn''t think of that one!!! :) But seriously. It seems I want to address a class, rather than the individual id''s of the images. At this point, I''m getting some results with something like this: