Displaying 20 results from an estimated 20000 matches similar to: "Selecting radio group from element"
2006 Jun 30
7
javascript woes with radio button groups
Ok! So I have this survey project I''m working on where there are a list of
questions but only one shows up at a time.
That part''s easy. And, it is fully functional as we speak (and I think even
''live'') however.....
My boss wants to be able to have the survey go to the next question when a
user selects an answer. This part is easy.. except.....
IE
2007 Nov 20
4
onkeyup issue while you create new element
Hi guys,
I am new to prototype as a result the following is a simple question
please help me out as i have stucked on this for 2 hours (searching,
trying, googling and etc)
var td6Input = td6.appendChild(new Element(''input'', {size: "2",
maxLength: "2", name: "txtDateOfServDay"+seq, id:
"txtDateOfServDay"+seq, onkeyup:
2008 Jun 19
7
getDimensions() fails for elements with ancestors with display: none
Prototype v1.6.0.2
If any of an element''s ancestors are hidden, Element.getDimensions()
returns misleading values. In order to address this in my own project,
I made the following modification:
getDimensions: function(element) {
element = $(element);
var display = element.getStyle(''display'');
+ var hiddenAncestor = element.ancestors().any(function(e)
{
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,
2008 May 07
1
Change Focus of Radio Button
Hey ya''ll... Love learning Prototype so far... ran into a small
problem today, from my google search it doesn''t seem like there is an
easy way to do this... i hope i have assumed wrong!
I need to change the focus of a radio button... I currently use this
code to call focus to the first form element... i tried to reuse it to
do radio buttons with no success
2008 May 30
7
Styling an Anchor Tag With Prototype
I have a question: How do you style the various components of the
anchor tag? I am doing it this way:
$$(''a:link,a:visited'').each(function(link){ //links
link.setStyle({ color: ''#''+$F(''cp4_Hex'') });
});
$$(''a:hover'').each(function(link){ //links
link.setStyle({ color: ''#''+$F(''cp5_Hex'')
2008 Apr 24
4
Scriptaculous Help (page exit effects)
I was wondering if it was possible in Prototype/Scriptaculous to run
an effect when a link is clicked, then go to that page, or if it was
possible to have an effect run when the page unloads.
I have tried <body onunload="new Effect.Fade("whatever");> and some
prototype page exit events, could get a alert("") function to work,
but not the effects. Any ideas?
2008 May 01
3
Adding script line give errors Help!
I am trying to add this script
<script language="javascript" type="text/javascript" src="http://
www.expedia.com/pubspec/scripts/storefront/expe.sf.vertical.350.asp?pid=&aid="></script>
To my idex page and it give me errors, when I delete this line <script
src="js/lightbox/prototype.js" type="text/javascript"></script>
2007 Dec 08
2
Assigning submit handler to form
Hi folks,
A quick question for somebody. I''m adding a simple validation JS to my
form by attaching it like so:
$(''my_form'').observe(''submit'', function(e) { return
view_ns.validate_form(Event.element(e)); });
The validate_form() function returns true or false. But regardless of
it''s return value, the form is always submitted. ''sup wi
2008 May 24
5
TypeError : transport.responseText has no properties
Hello all,
I''m using prototype in conjunction with Extjs to build out an Ajax-
driven app. I''m noticing that occasionally there will be Ajax
Requests that will occasionally not complete. After some
investigation, I found that when I made a call to String#evalJSON, it
would throw a TypeError with the following message :
transport.responseText has no properties.
When this
2008 Mar 22
4
Ajax.Updater not fully work in IE7
My code snapshot: correct work in FF , Opera and Safari, but in IE7 -
isn''t return result
<form action="test.php" method="POST">
<div id="country" style="border: 1px solid #ccc; width: auto"></div>
<br/>
<a href="javascript:getTest()">test</a>
</form>
<script
2008 Apr 18
5
show sum of textboxes
Hi all,
I have multiple textboxes containing numbers. I want to add up all the
numbers and show the sum. Can I select the textboxes by class and sum
the content?
This also has to happen realtime: when a number is changed ina textbox
the sum should also change.
can this be done?
regards,
Stijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Apr 14
2
transport.response is truncated
hi - i have a randon but recreatable problem whereby my
transport.responseText seems to get truncated. I have tried swithcing
btwn onSuccess and onComplete buit it happens on both.
As i said it''s totally random.
any ideas ?
what other info di i need to provide ?
many thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2008 May 19
6
obtaining table cell text data
I''m writing some code to subset a table based on the contents of
particular columns. My event handler starts off like this:
subsetChange: function(e) {
var subset = $F(''subsetSelector'');
var rows = $$(''.content-row'');
rows.each(function(row) {
var value = row.down(''.Platform_Category'').childNodes[0].data;
2008 Apr 28
3
How to pass variable to $$()?
Hi all,
I want the $$() method to take the selector as an variable. See
below, I am trying to pass the class name as javascript variable so I
can write a generic function in my application but $$() returns
nothing for the following line
var currentHightLightGroup ="amountsFields";//This one comes as a
function parameter
2008 Jan 30
8
<select>.remove()
I am scratching my head about this one... I have a script that is
trying to remove a <SELECT> node from the DOM using the remove()
function. It chokes when the script runs, though. To be more specific,
Firefox is kicking out the following error:
uncaught exception: [Exception... "Not enough arguments" nsresult:
"0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location:
2008 Jun 19
2
Capturing draggable revert
I''ve seen a few posts about this, but no answers.
I would like to be able to call a function when a draggable revert
occurs. What I''m trying to do is replace a photo with an icon on drag
(which I''ve accomplished), but I need to swap it back if the revert
fires.
I really, really wish there were an onRevert() option, but there
isn''t, so I guess I''ll
2008 Feb 18
6
inheriting static/class methods with new prototype.js class creation
Hey all.
I want something like this to work:
var Foo = Class.create();
Foo.myStaticMethod = function(){alert("I''m a static method!")};
Foo.myStaticMethod(); // works
var f = new Foo();
f.myStaticMethod(); // doesn''t work, but that''s good--I don''t want it
to
var Bar = Class.create(Foo);
Bar.myStaticMethod(); // doesn''t work, undefined :(
2007 Dec 09
5
capturing arrow keypress on IE7 with Prototype 1.6 doesn't work?
Hi!
does anyone know a fix for this?
in FF and Opera everything is fine, but in IE7 arrow keys are ignored.
thank you
--~--~---------~--~----~------------~-------~--~----~
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
2006 Apr 27
0
radio buttons and $F function
Hello there, i working with prototype but i have a little doubt, I''ll always
use the shortcut $F to get values in a form, that''s ok, but what happens if
i need get the value of one of three radio buttons value? normally i get
the radio button value with document.formName.radioName but the shortcuts on
prototype works with the id, there is a prototype way to do this??
greets
--