search for: findelements

Displaying 20 results from an estimated 22 matches for "findelements".

Did you mean: findelement
2005 Nov 22
0
Element.findElement - confusion
Hello I''m kind of confused on how to use Element.findElement. I''ve something like this: if (Event.findElement(event,''A'')) { var elm = Event.findElement(event,''A''); alert(elm.nodeName); } else { alert(''no link''); } var elm = Event.findElement(event,''A''); alert(elm.nodeName); returns
2006 Jun 16
4
Prototype $$() on arbitary DOM element ?
I am bit confused with this function. Should I be able to pass in a DOM element e.g. someAjaxRequest.responseXML and interrogate it ? Seems not but perhaps I am missing something... TIA Matt
2006 Jan 29
2
Questions about Sortable javascript
...he index of my O''Reilly book covering JavaScript 1.5 [2] I cannot find any of these methods .detect(), .findAll(), .reject?, Element.childrenWithClassName, $(), $A() Object.extend. Where is a good reference to these things? Are they JavaScript 1.6? 2) What is greedy refering to? 3) (this.findElements(element, options) || []).each is a JavaScript idiom to avoid problems when findElements returns null? 4) why unimplement tree? 5) what is overlap? 6) what is dropon? 7) Why the underscore in Sortable._marker 8) what are onEmptyHover and dropOnEmpty about? What is ''empty''? 9)...
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the picture as it wasn''t necessary to include to the mailing list so everyone can hear the general techniques), I recently had a very similar problem with my project. The problem arises because whenever you move the mouse to ANY element, the previous element that the mouse was over gets a mouseout event, even if it
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the != should be == ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Gahl Sent: Wednesday, January 11, 2006 2:28 PM To:
2005 Jul 28
2
autocomplete: how to access a child element of <li>
hi. i promise this will be my last question for the day. still playing with autocompleter, everything is working ok, but i''m having difficulties accessing just the href attribute of <a> element, which is a child of <li> in the autocomplete response, i.e: <div class ="autocomplete"> <ul> <li><a href
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
2015 Jun 05
3
usar Selenium para web scraping
Hola. Tengo que bajarme varias tablas del INE y necesito interactuar con el navegador. Ví el fantástico post que escribió Gregorio Serrano (que la tierra le sea leve), en http://www.grserrano.net/wp/2014/01/relenium-el-siguiente-nivel-de-web-scraping-con-r/ y estoy intentando reproducirlo para aprender como funciona relenium Pero relenium me da error después de if(!require(relenium))
2007 Nov 28
0
Prototype 1.6: Selector.matchElements Issue?
I haven''t been able to find any discussion about this. It looks as if Selector.matchElements is broken (which means that Selector.findElement, Element.down(elt, cssselector) dont work properly. What I''m seeing is that (line 3310) the Selector.findElements is not called with the root node of the node you are wishing to find elements under (its not called with a parameter at all) - so down the call stack, the xpath is applied against the root document (which probably doesn''t have the elements you intended). You''re already passed the...
2005 Oct 21
1
Member Not Found
''ello all. I''m having problems with using Element.findElement from Prototype 1.3.1 Everything works great in Firefox, but when I switch over to IE, I get a "member not found" error. I can''t figure out if it can''t find the event object anymore or if it can''t find the tag as it walks up the dom. Has anyone else ran into this problem?
2006 Feb 01
1
Sortable onUpdate problem
...n of Sortables to call a function that will delete and then recreate all of the draggables and droppables with all the same options. My function and it''s various attempt statements is below. Any ideas? Thanks, Peter function homogenize(element, options){ element=$(element); Sortable.findElements($(element), options).each(function(k){ Draggables.removeObserver($(k)); Draggables.unregister($(k)); Draggables.deactivate(k); new Draggable(k,options); Droppables.remove($(k)); Droppables.add(k, options); }); } // homogenize
2015 Feb 16
3
consultas formularios web
Estimados Les consulto por lo siguiente, incluso creo que de esto se habló en una oportunidad en esta lista, por ese motivo cualquier sugerencia es bienvenida. Hay algo de información que me hace falta para un trabajo, pero esta no es de una única fuente, y desconozco si brindan los registros, pero lo que es accesible son los sitios web donde estas fuentes publican un formulario HTML simple,
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...atch(p)) { this.matcher.push(Object.isFunction(c[i]) ? c[i](m) : - new Template(c[i]).evaluate(m)); + new Template(c[i]).evaluate(m)); e = e.replace(m[0], ''); break; } @@ -2804,8 +2829,27 @@ var Selector = Class.create({ findElements: function(root) { root = root || document; - if (this.xpath) return document._getElementsByXPath(this.xpath, root); - return this.matcher(root); + var e = this.expression, results; + + switch (this.mode) { + case 'selectorsAPI': + // querySelectorAll queries doc...
2015 Jun 05
2
usar Selenium para web scraping
Estimado José Luis Cañadas En lo personal el trabajo de Gregorio que cita Carlos me fue de mucha ayuda, lo único que Rselenium tiene un comportamiento algo extraño, mi problema es en dos líneas, la primera sobre ejemplos que no funcionan (algo cambió), pero la importante es sobre mi trabajo, luego de horas de web scraping por alguna razón da un error, este tiene que ver con el recorrido de todas
2007 Dec 21
5
dom movement methods, unattached objects
Hey guys I have a bunch of element fragments (ie this might be a div, with children of an image, another div) etc which aren''t attached to the document yet.. and can''t seem to call the dom manipulation methods on them: down(''img.icon'') returns undefined but if I look at the innerHTML of the element, there is clearly an image there with that class. Is this is
2006 Feb 27
11
Disabling anchor clicking in a draggable
Hey guys I have an interesting problem - I have some draggable elements (sortable actually), with links (<A>) inside them. I want the user to be able to click on the link, however if the user drags the element I don''t want the link to get fired. Can anyone think of a way to do this? It only needs to work in Firefox. Cheers -Rob
2006 Apr 09
0
Form.EventObserver Incorrect?
After playing with Form.EventObserver for a while, I wonder if it shouldn''t pass the element that triggered the event to the callback instead of the form object itself. Although we pass the form object to the constructor, we are monitoring changes of individual elements. As it stands, there isn''t any way to determine which element fired the event without comparing
2005 Aug 12
1
Ghostly bug in sortables
When a sortable has ''ghosting'' enabled, it seems to include the dragged element twice in the list which is submitted in the onUpdate AJAX request. By the looks of it, it''s appended onto the end of the list when Sortable.serialize is called. IE in the following list: - 1 - 2 - 3 If I drag 3 to be at the top, what we expect is: [3, 1, 2] What we get is: [3, 1, 2, 3]
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
2008 Jul 01
4
Positioning Oddities
I''m having some trouble using Element#cumulativeOffset and Element#cumulativeScrollOffset to absolutely position an element right under a link in certain browsers. I made a couple of tests to illustrate the issue, which can be found here: http://www.jeffreykeen.com/sandbox/position. But in summary, I''ve found two cases which seem to be problematic. 1. If the link has a