search for: readattribute

Displaying 8 results from an estimated 8 matches for "readattribute".

Did you mean: read_attribute
2007 Aug 16
2
event.target.readAttribute undefined
...using 1.6 RC0... event.target.readAttribute is undefined on IE 6 and 7 and Safari 1.3.2. ...works fine on other browsers. Is this a bug? Thx, Les --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group...
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
2007 Jun 01
5
il8n with Prototype
...e grateful for feedback regarding the following: /* Iterate over elements and lookup translation for language in JSON dictionary */ function translateChildren(parent, language) { var phrases = parent.getElementsByClassName(''lang''); phrases.each(function(p) { var phrase = p.readAttribute(''for''); p.innerHTML = translations[phrase][language]; }); } /* Get language from Cookie */ function getLanguage() { document.cookie.scan(/language=(..)/, function(match){ lang = match[1] }) return lang; } /* JSON dictionary */ var translations = { ''search'...
2007 Aug 29
0
Element.addMethods vs extending prototype.
...ement.addMethods() to add some additional functionality to my forms ... Element.addMethods(''FORM'', { ... }); So far so good. I now want to add a new property to all forms. Is there an equivalent Element.addProperty(''FORM'', { ... }); technique I could use? As readAttribute / writeAttribute are used, how about an addAttribute / removeAttribute also? Any suggestions? Regards, Richard Quadling. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" -...
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi, I have the following code working in a rails 3 view, but it is unfortunately not pure rails code! <% @filter1 = "tr.show1,tr.show2" %> <% @filter2 = "tr.show1" %> <% @filter3 = "tr.show2" %> <form> <p> <input type="checkbox" value=<%=@filter1%> onclick="$ (this).is('':checked'')
2008 Jul 05
3
getting and writing atrr with prototype
Hi i''m learning prototype and i need to know something... Someone knows how to write and get the value of some atribute... i mean like...jquery that uses $(''#sub-div'').atrr(''alt'',''visible); in prototype is there something like that?... I hope you can help me and thanks :D --~--~---------~--~----~------------~-------~--~----~ You received
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...)/, + attrPresence: /^\[((?:[\w]+:)?[\w]+)\]/, attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ }, @@ -3014,7 +3059,7 @@ Object.extend(Selector, { attr: function(element, matches) { var nodeValue = Element.readAttribute(element, matches[1]); - return Selector.operators[matches[2]](nodeValue, matches[3]); + return nodeValue && Selector.operators[matches[2]](nodeValue, matches[5] || matches[6]); } }, @@ -3029,14 +3074,15 @@ Object.extend(Selector, { // marks an array of nodes for c...
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