Hi List,
i try to change the value of the name-attribute of an input field
using the writeAttribute method.
In the IE the name value will not changed but a new attribute appears:
submitName
The input field i want to update is the child of a cloned tr element
$(allInputs[i]).writeAttribute(name,
The thing is, I don't want to stop the form from submitting all
together, I want to stop it from submitting when hitting enter in the
login part of the form.
On 23 aug, 10:27, Johan Arensman johanm...@gmail.com wrote:
You could also try to observe the form and prevent it from submitting:
For the life of me I cant figure out why you want to do this... any time you
change expected behavior you decrease usabilty and thereby increase user
frustration.
Regardless, the following should work:
script type=text/javascript
function noenter() {
return !(window.event window.event.keyCode
You obviously didn't read the entire post, as the expected behaviour
for an enter press is to submit the form that is currently visible and
not the one that is hidden. That's what I'm trying to accomplish.
I in fact figured out that I should add a return. Thanks anyway.
On 31 aug, 14:21, Phil
Hi.
Imagine a component which has a method which allows a third party to
supply some data after the initial creation of the component using
new.
e.g.
// Initial creation.
var myComp = new MagicComp({option1:value1, option2:value2});
// Some time later, maybe as a result of a click event.
Hello,
Why not do exactly what you say, compose all the parameters for the request
and execute whenever you want:
var url = '/foo.php';
var ajaxOptions = {
option1: foo,
option2: bar
}
// do whatever you want..
// even add something
ajaxOptions.option3 = 'bla';
// then execute
new
Hi! I'm trying to assign a CSS style to a TR that contains the words
Pendiente, Procesando and Completo.
I've made this for jQuery, but I need to do it with prototype/
scriptaculous and I'm a totally newbie.
Thanks in advance for any help!
This is the code I've made for jQuery:
script
Hi,
Hope you enjoy Prototype!
The Prototype equivalent of jQuery's `$` function is `$$` (yes,
really):
http://api.prototypejs.org/language/dollardollar/
The Prototype equivalent of jQuery's `css` function is `setStyle`:
http://api.prototypejs.org/dom/element/setstyle/
Prototype doesn't
Hey,
Setting styles can be done using the the setStyle method:
http://api.prototypejs.org/dom/element/setstyle/
Selecting elements using a css selector can be done using the $$ method
which is short for Element.select() but then global:
http://api.prototypejs.org/language/dollardollar/
Bah T.J!
You beat me to it!
:-)
On Tue, Aug 31, 2010 at 4:39 PM, T.J. Crowder t...@crowdersoftware.comwrote:
Hi,
Hope you enjoy Prototype!
The Prototype equivalent of jQuery's `$` function is `$$` (yes,
really):
http://api.prototypejs.org/language/dollardollar/
The Prototype
Hi again,
I just caught the fact that you said you wanted to apply the style to
the TR, but your selectors select TDs, not TRs. If that was just a
typo, ignore this note. :-)
If, however, you want to apply the style to the TRs containing those
TDs, just put tr at the beginning of each selector
On 31 August 2010 15:17, Johan Arensman johanm...@gmail.com wrote:
Hello,
Why not do exactly what you say, compose all the parameters for the request
and execute whenever you want:
var url = '/foo.php';
var ajaxOptions = {
option1: foo,
option2: bar
}
// do whatever you want..
//
Thank you so much!! :)
It worked really good!
but I don't know if I did something wrong cause this styled every
single element on the page not only the TD that contains the target..
sorry annoying you... I'm a designer :-)
Is this right? (The TR was a typo, but thanks anyways because this is
a
Hello,
Full credit to: Matthew Foster for the code below. I'd like an
explanation of the below. I'm having some troubles with Object extend
and would like a better explanation of the magic that occurs below.
$C = function(name, options) {
return
Hi,
I am currently facing a big problem and I hope that someone can help
me:
The following statement works perfectly in any browser except Internet
Explorere:
alert(foo);
document.observe(dom:loaded, function() {
// Some code
alert(bar);
});
In this case Internet Explorer would only
On 31 August 2010 17:49, kstubs kst...@gmail.com wrote:
Hello,
Full credit to: Matthew Foster for the code below. I'd like an
explanation of the below. I'm having some troubles with Object extend
and would like a better explanation of the magic that occurs below.
$C = function(name,
16 matches
Mail list logo