similar to: getting and writing atrr with prototype

Displaying 20 results from an estimated 3000 matches similar to: "getting and writing atrr with prototype"

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 11
2
Error in prototype.js ......var value = element.style[style];
Hi, I have a script that throws an error in prototype.js on line 1889. Its just started showing...it''s not breaking my app at all just showing the error. I can''t track back to where it started happening though. It''s this line. var value = element.style[style]; Has anyone encountered this before....do yiou have any hints on how to track this bug down?
2008 Aug 10
1
Prototype, JSON and headers
Hi everyone. I love JSON and using Prototype has help me reduce the code to handle AJAX responses. But one thing keeps me confused and sometimes even frustrated. I don''t really understand what is going on with the headers, so if someone could take some time to explain what is going on, I (and probably a lot more people) would be very thankful. The thing is this. On my local server (Mac OS
2008 Jul 11
1
prototype.js breaks treemenus from pear HTML_TreeMenu in safari
hi all i see a very strange behavior in safari when using prototype.js and the pear HTML_TreeMenu to reproduce get prototype.js (http://www.prototypejs.org/assets/ 2008/1/25/prototype-1.6.0.2.js) and treemenu.js (http://cvs.php.net/ viewvc.cgi/pear/HTML_TreeMenu/TreeMenu.js?revision=1.22). and test the following html with safari on mac or windows (http:// www.apple.com/safari/download/)
2008 Jun 04
1
new to prototype : Ajax.Updater
hey guys.. im a prototype rookie here.. the concept of "a framework for javascript" seemed mouth watering.. but my rails got stuck when i started using it. here is the guinea pig im using to experiment on prototype. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html
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
2008 May 24
3
prototype causing value undefined error
I have a project for which I used a Wicket template as a starting point. The original example uses prototype.js. I''m using an SVG image as a background and have included a javascript that causes the image to always fill the background, regardless of the client window dimensions. This works fine in Safari 3 (Firefox doesn''t display the background image, but I''ll deal
2007 Jun 01
5
il8n with Prototype
I''d be 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 =
2008 Jun 07
3
PeriodicalExecuter stops when form is submitted in Safari 3
Hi I''m having a problem using PeriodicalExecuter with a form. I have a monitoring pane that updates status of form processing, and it stops working when I submit a form. It works with Safari 2, IE, Firefox, but not with Safari 3. I''ve made a test script: http://www.charmm-gui.org/test.html It updates a textarea, but it stops updating when the form is submitted in Safari 3. Any
2008 Jan 14
13
prototype/script.aculo.us ecosystem
Recently errtheblog (http://errtheblog.com/) put up a nice post about jQuery. Putting aside all the assertions about cleaner code and fewer lines of code than with Prototype, the one thing that struck me from his (and others'') writing and from direct inspection is this: jQuery seems to have a more of an ecosystem surrounding it. That is, more plugins, widgets, locked-and-loaded
2008 May 13
8
static private and multi-inherit
/*author:csf178-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org*/ function Class(Initalizer,SuperClasses) { if(!SuperClasses)SuperClasses=[]; var ret=function(){ for(var i=0;i<SuperClasses.length;i++) { SuperClasses[i].call(this); } var $private={}; var $public=this; var $static=ret; with($static){ with($private){ with($public){
2009 Feb 26
7
javascript using jQuery.js and prototype.js doesnt work 2get
Hi........ M hving javascript "scripts.js" which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails... Do some1 hv any solution how to make both the scripts work 2gether... I tried using <script> jQuery.noConflict(); </script> bt of no use. problem
2008 Jun 12
10
Ajax.Updater not working in IE, tried everything
hi, i am basically using a button, Prototype/AJAX, and PHP to update a user''s location. something simple as typing ''Chicago, IL''. After the script, it rewrites the result in a div tag. here is the form i''m using: <div id="hometown_result">Aurora, IL</div> <form action="" method="post"
2008 May 30
1
Prototype doesn't work if we have swf content on the same page
I having to many troubles with prototype and scriptaculous when i have object tag to embed swf content on webpage. First it conflict with adsense and the page can''t be showed on IE6, fine, i remove adsense banners. But my lightbox galery(maded with prototype) doesn''t work if i had swf content from youtube... Some body can help with this problem? I''m starting hate
2008 May 22
9
building a many-to-many structure in javascript
hi, for some purpose, I need a "in-javascript database", maybe built with some Prototype $H function calls for creating "tables" but what about junction tables, I mean those which express many-to- many relations between two entity tables ? I though using concatenation of strings with a separator, for example "key1 key2" "1234-56" or "ABC \n 789"
2008 Jul 11
1
Scriptaculous: how to keep element space?
Hello everybody, I hope I am at the right place here with my question, otherweise please accept my apologies. I searched a lot for my question and did not find an answer, so I would be very happy if you could help me out maybe. I am using Effect.Fade for on element. Everythings works fine, but when the element is faded out, its space it no longer used and therefore other elements move and
2009 May 20
2
prototype.js insert issue
Hi, I am trying to use the following lines in my RJS and have a problem page.insert_html :bottom,:list,"<ul>" #some conditions checks page.insert_html :bottom,:list,"<li>Hello item</li>" #some more code to add <li>s page.insert_html :bottom,:list,"</ul>" The problem I am having is the first line <<page.insert_html
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
2008 Apr 18
1
element has no properties error.
Hey all, I''ve recently started messing around with Prototype again, so I thought I''d start small and write 5 lines of code that would check if all fields in a form are filled out. So I thought document.observe(''dom:loaded'', function() { $(''submNewUser'').disable(); new Form.Observer($(''newUser''), 0.3, function(e, val) {
2002 Oct 21
4
Any work-around for very large number of files yet?
Yes, I've read the FAQ, just hoping for a boon... I'm in the process of relocating a large amount of data from one nfs server to another (Network Appliance filers). The process I've been using is to nfs mount both source and destination to a server (solaris8) and simply use rsync -a /source/ /dest . It works great except for the few that have > 10 million files. On these I get