similar to: img element inside div not accessible with $$() or getElementsBySelector

Displaying 20 results from an estimated 1000 matches similar to: "img element inside div not accessible with $$() or getElementsBySelector"

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
2007 Apr 10
1
bug: Element.getElementsBySelector on internet explorer
Hi, in ie7 I can''t use Element.getElementsBySelector to select elements in a xml document --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2007 Jan 22
11
getElementsBySelector broken in IE
Hi all: getElementsBySelector appears to be broken in 1.5 final on IE. getElementsBySelector works as expected in FF 1.5 final and also it works correctly in IE in 1.5 RC2. Here''s my simple code fragment: var els = element.getElementsBySelector(''[recnum]''); The variable els is undefined in 1.5 final on IE. --~--~---------~--~----~------------~-------~--~----~ You
2008 Jan 09
4
Using Prototype - Getting Javascript Error - "Object doesn't support this property or method"
I have the following javascript being called on my site and I am getting a Javascript error - "Object doesn''t support this property or method". The error is invoked on the line that has - "listItems = $ ("vidList").childElements("li");". The purpose of the Javascript is two fold: ''swapVideo'' to change the Youtube video and
2007 Feb 02
2
Quick Element.getElementsBySelector() question
Hi, Does this code should works ? elm.getElementsBySelector(''UL.class1 > LI.class2''); I have an error caused by "UL.class1 > LI.class2" - Does CSS Selector ">" works ? - What is the exact ? may be "UL.class1>LI.class2" Regards, -- Jean-Philippe Encausse - R&D Jalios SA Jp [at] encausse.net - http://www.encausse.com -
2007 Nov 09
1
Prototype API Docs inconsistency
Hi, If you follow those two links (watch the case difference) : - http://www.prototypejs.org/api/element/getElementsBySelector - http://www.prototypejs.org/api/element/getelementsbyselector You''ll see that the first one does not indicate the 1.6 deprecation even though it is the same method. I guess those docs where generated, so the problem might exists elsewhere in the docs. Thanks
2007 Jun 09
1
Element extending problem
Okay, I posted about this a few days ago but couldn''t replicate it in my test case. I have this page, which everything works fine on... except some of the prototype methods. They do not appear to exist on an extended Element. ie: Element._extended = true Element.up = undefined Element.addClassName = function Element.getElementsBySelector = undefined I''ve been trying to figure
2007 Jun 09
23
hoverclass on droppable zone
Hi guys, I''m trying to make a drag''n''drop portal using sortable element. I would like to apply the "hoverclass" option only on the droppable zone instead of the column border. Any idea a about the solution? Thanks for any help, Sabri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Jun 13
1
Element.remove parent div
Hi all, Currently I am using Element.remove like so: <div class="blurb" id="drag_1"> <a onclick="Element.remove(''drag_1'');" class="remove"></a> </div> However I would like to just create a function since I''ll be removing multiple DIVs and updating the sortable order. I just can''t get some version
2007 Mar 23
7
Lightbox-eske Dialogish Object
So, one of the things I''ve always wanted to do was expand upon the simplicity of the Lightbox Gone Wild! object that the coders at www.particletree.com put together months ago. I used it on an application I wrote to organize my own picture albums on my localhost web server, but I had to hack it apart to get it to do the things I wanted it to do. I looked at the Prototype Window
2007 Jul 31
6
Using Effect.Move() while maintaining the elements DOM order
Hi there, is it possible to maintain the elements order in DOM when using Effect.Move()? Currently the Move effect will change the element position (using top and left style attrs), this works quite well too, but what I''d like is to change the elements position as well. Consider the following example: html: ... <div id="a">First</div> <div
2007 Apr 21
0
Collapsible Hide/Show DIV
Hi there. I posted this before but wanted to change the subject. I want to have a collapsible div inside of a for loop. I''ve been messing around with it and could only get 1 item out of a few to be able to hide. I''m just using this: <script language="javascript"> function toggleDiv(divid){ if(document.getElementById(divid).style.display ==
2008 May 19
0
up/down/delete functions for list items, problem with bound parameters
Hi all, I am dynamically creating an item list with div containers. Because of this dynamic nature, I am using the element.observe method along with the bindAsEventListener() function to bind its execution to within the object that creates the div in the first place. The problem is that the POS argument I am passing along with it is forever being bound to that element. This is causing a problem
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying. In javascript, I''m using the ajax.updater, and it (obviously) writes back out to a div. I want to then compare what was echoed out into this div (which came from the php file I listed in ajax.updater) with a string. test should equal "SomeString" because that is what is being echoed out to
2005 Dec 04
2
Adding sortables dynamically
Hi all, is there a way to define the containment option for a sortable so that it is a class name instead of an id list? I have a case very similar to the sortable lists demo, the only difference is that I'm adding new list containers dinamically, so either I need to redo the Sortable.create calls for all new elements to include the newly added container, or having someway to have them
2006 Mar 31
0
update a div element without having a corresponding action
Rails group, I''m looking to update a div element with a page link without having to write a corresponding action to populate that element. I''ve tried: <%= link_to_function "cancel", page.replace_html("control", :partial => "controls") %> Basically I''m trying to limit the amount of methods that serve my Ajax calls that only
2006 Apr 16
2
AJAX update of <img> element?
Hi, I''ve been trying to do AJAX updates of an <img> element, but I can''t seem to make it work. Should it be possible to do something like this...? [View] <%= form_remote_tag :url => {:action => ''sendplot''}, :update => ''plot'' %> <%= submit_tag %> <%= end_form_tag %> <img id="plot"
2006 Apr 02
2
Focus on ajax newly-created form element
I have an ajax method that creates a new form. I want one of the input boxes to be focused when the form gets displayed. So in my inline RJS I have page << "document.getElementById(''post_title'').focus();" The input box is being created with <%= text_field ''post'', ''title'' %>, so the ID should end up being
2005 Dec 08
6
What does mean $(element) ?
Hi All, In scriptaculous scripts, I don''t understand this syntaxe : $(element) --8<--------------------------------- Effect.Highlight = Class.create(); Object.extend(Object.extend(Effect.Highlight.prototype, Effect.Base.prototype), { initialize: function(element) { this.element = $(element); ... --8<--------------------------------- I had never seen this syntaxe, I
2007 Aug 02
3
Problems with Element.extend() on responseXML elements with IE
I have the following code in the "onSuccess" function of an Ajax.Request() call. The content type of the response message is "text/ xml". function interactionSuccess(request) { var root = $(request.responseXML.documentElement); ... So more or less I extend the root element of my XML response. This call triggers the onException callback. The exception is a