similar to: javascript woes with radio button groups

Displaying 20 results from an estimated 10000 matches similar to: "javascript woes with radio button groups"

2005 Nov 04
1
prototype EventObserver on radio option elements
Hi all, I just started using prototype 1.3.1. I''ve successfully used Form.Element.EventObserver on a select list and recently tried to add it to radio options. However, I think there is a flaw in how it works with radio options. Radio options are a little unusual in that there are multiple distinct elements, tied together by a common name, where changing one element causes a
2006 Jun 16
11
Detecting Body Onload
I have a piece of code that "waits" for body onload. Every 30ms, it tests $(''body''). Seems that isn''t always good enough. I''ve hit situations where the DOM is "partially" loaded somehow. I fixed matters by setting a global flag... <body onload="bodyLoaded=true;"> which provides a better test... of course I could
2006 Jun 21
26
Implementing a boolean "switch" in a Class
I need a single boolean which would be "globally" accessible to all instances of a class. Seems like the boolean should be in the class prototype, but I was troubled by the difficulty of setting the prototype boolean to true. Maybe I''m missing something? var MyObject = Class.create(); MyObject.prototype = { bSwitch: false, ... other methods and properties } var oMyOb1
2006 Jun 24
10
Looking for Javascript IDE
Hi everyone! I am looking for a good Javascript IDE. Complete code-completion, should understand object oriented models and anonymous functions. Any suggestions? PS: Im on windows. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2005 Sep 20
1
radio buttons and event obvsering
Hi, I made a little utility class that turns on a particular div when a radio button is clicked - a RadioButtonDivToggler. As the name hopefully suggests, when a radio button from the same group is clicked, a different div is made visible and the others are hidden. In essence, it toggles on (makes visible) the div associated with the radio button from a group that you clicked. However,
2006 Jun 14
3
sortables and onClick events firing
I have a page that I have been tasked with adding sortable support to, and the div elements that are being dragged have a <a href> in them with an onClick handler that opens a new window with a preview. Is there a way to keep that onCLick from firing when a sortable is dropped? Sam D _______________________________________________ Rails-spinoffs mailing list
2007 Feb 23
7
Vanishing Globals
Gents, I have what I thought was a simple scenario, but IE seems to have found a way to make it difficult: I am creating pairs of drop-downs of times of the day (9:00, 9:15, ...) on the fly (using AJAX) and want to be able to adjust the displayed difference between them in hours onChange and store this information in a global hash. Straightforwardly enough, I simple use Event.observe to set up an
2005 Oct 17
11
a better question
I''m trying to call a click() event on an <a href> that has an Observable registered for it. Something like: <a href="#" id="toggle_1929">show</a> ... Event.observe("toggle_1929", ''click'', function(event){ Element.toggle ("group_1929"); return false; }); ... $("toggle_1929").click(); //this throws
2007 May 25
2
Sortable onChange fires for every mouse movement
Anyone found that sometime between 1.6.4 and 1.7.1 beta releases of Scriptaculous that something has changed with the way that the onChange is fired? In 1.6.4 it fired once, now in 1.7.1 beta it fires everytime you move the mouse. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs"
2006 Nov 23
3
Prototype Safari onSubmit Issues
Hi folks. Another Prototype question. I have a simple ajax form which I want to return results on an onChange. Works in IE6 (Win) and FF, but Safari doesn''t seem to take the onChange too well. Upon the return key, it blanks out the form. Upon tabbing to the next field (actually the next form), I get the results. <form name="form1" id="form1"
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an element? I think this code works in IE but not FF: myElement.fireEvent(''onclick''); I really only care about IE and FF, but anything else is a bonus. I didn''t see anything in prototype/scriptaculous for this, but I might have missed it. Thanks. Joe Athman
2006 Jun 14
5
Sortable Tree - Stoping Event dispatch ?
Hi, I''m trying to play with sortable tree and have two issues: I have an AJAX Tree looking like: <ul class=''TreeCat'' id=''work''> <li class=''open''> <img src=''s.gif'' class=''node'' onclick="Ajax.Tree.toggle(event,this);"/> <a
2006 May 20
1
Slider.js - Attemting to put values in form.
I can''t figure out how to take that value that the user has chosen in the slider and put that into a form value. Does anybody know how to do this? Here is my code so far (It''s pretty much directly from script.aculo.us): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Text effects tests</title> <script
2008 May 08
2
DOM builder and HTML events
Hey guys, My team is have an issue using the Prototype DOM builder. For some reason, the onchange event isn''t being registered for an input box. $(''targetDiv'').update(new Element(''input'',{type:''text'', id:''blah'', onchange:''alert();''})); When we insert via the .innerHTML parameter, it works just
2006 Jan 29
2
How to fire event listener after site update by Ajax Updater?
Hi all. I have site that is updated by Ajax updater. After site is update i want to use some javascript code and I don''t want use javascript onClick. I try to use some event listener but I don''t know how to fire them. What is the event when some part of site is update by ajax? Thanks for any help Gregor ---------------------------------------------------- Chuck nie musi dzwonić
2006 Jun 25
17
JavaScript Compression
Is there a good windows-based JavaScript compressor which will reliably compress script aculo and prototype? Sam _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Apr 27
8
Prototype based tabs and field validation. Enjoy!
Thought I''d try and contribute to the growing prototype ecosystem. tabs: http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/ field validation: http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/ Both real easy and clean to use. Hope y''all can use them somehow. Cheers -- Andrew
2006 May 22
2
tabs
I was wondering if there is a way to do tabs easier than most of the tutrials that I have found. I dont realy care if its realy fast just as long as it works. Something sort of like http://code.google.com/webtoolkit/documentation/examples/kitchensink/demo.html#TabsAlso if there is a way where if my viewers want to save something as a link than there is something they can click and it will give
2006 Jul 20
1
Scriptaculous + Sortable: onUpdate Not Firing
Hello all, I''m using Scriptaculous 1.6.1 on a project I''m developing. My generated HTML (generated by PHP) looks something like this: <ul id="admin-list"> <li id="li-13">Singletary, Bob (President/CEO)</li> <li id="li-12">Chatman, Jim (Vice President of Finance/CFO)</li> ... </ul> <script
2011 Aug 29
7
:onchange in rails 3
Hi, Anybody know why :onchange works here... <%= select_tag "Minisections", options_from_collection_for_select(@minisections, :id, :title, :selected => @minisection.id), {:onChange => "{alert(''Minisection has been changed to x !'')}"} %> but NOT here (to call a function)... <script type="text/javascript"> function xyz() {