Hi,
Are those calls to doUpdate really inline? If so, they're probably
happening before the DOM is ready. I'd suggest wrapping them in a
dom:loaded event handler[1] or one of the other mechanisms for making
sure the DOM is ready before trying to do things with it.
[1]
A good night's rest made me see that I did not have an id attribute on
the form element, just a name. My bad. That gets me sometimes when I
am referencing form fields.
By the way, the code is actually velocity, a little-known java
template language. It was part of a project we ended up using a
yep, its not var as var, actually the name is different to var, i only
use var as an example, alex can u help me with the autocompleter?,
some ideas or one example, i was looking for a similar post with
autocomplete function, but i dont understand to much, i need some for
newies, thanks in
Ajax.Request and methods that inherit it(like autocompleter) accept
JSON encoded objects as parameters (AFAIK)
/* Set isMirror to something */
isMirror = myobj.isMirror();
/* OR if this is a server-side determined value echo it */
isMirror = ?php if(something){echo 'true';}else{echo 'false';}
myParam:{action:'save',mirror:isMirror, value:myVal} //setup JSON
Sorry, should be: myParam = NOT myParam:
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group,
You can only get value from a form element, not from a text node. If
you want to read the raw text out of an HTML element, you'll need to
use $('textID').innerHTML for that.
Walter
On Jan 22, 2009, at 11:34 AM, disccomp wrote:
/* Another example, get the value of some text node and pass
Try Downloading the IE 8 Beta and the Developer Tools, works much like
Firebug in Firefox. It can catch javascript errors and let you step
through the code.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype
Hi.
s_CSS = '.scrollBox label';
console.info($$(s_CSS));
console.info($$(s_CSS + '.nonSpacing'));
console.info($$(s_CSS).without($$(s_CSS + '.nonSpacing')));
[label.nonSpacing, label, label.nonSpacing, label, label, label,
label, label.nonSpacing, label, label, label, label, label.nonSpacing,
Is there a way to listen for the user cancellation of a form
submission. IE they press ESC or click 'Stop' in the browser after
having initiated submission?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype
It appears as though without accepts its values in individual
parameters. Looking at the documentation it does illustrate that each
value is set in as its own parameter.
http://prototypejs.org/api/array/without
Looking into the source it becomes clear that it uses the function's
arguments as
please help, i was seeing one example but i have some doubts
1) in the principal file
script src=lib/prototype.js type=text/javascript/script
script src=src/scriptaculous.js type=text/javascript/script
script src=src/unittest.js type=text/javascript/script
its necessary to add the
2009/1/22 Matt Foster mattfoste...@gmail.com:
It appears as though without accepts its values in individual
parameters. Looking at the documentation it does illustrate that each
value is set in as its own parameter.
http://prototypejs.org/api/array/without
Looking into the source it
True, but i was following some example in the book called Practical
prototype and script.aculo.us (Dupont).
I'll give both a go.
On Jan 22, 4:46 pm, disccomp discc...@gmail.com wrote:
Would it be easier to add something like:
onClick=doSearch();
To:
input type=submit name=btnSubmitSearch
On Jan 22, 7:18 pm, Richard Quadling rquadl...@googlemail.com wrote:
2009/1/22 Matt Foster mattfoste...@gmail.com:
[...]
I completely misread the Array.without(). I saw the individual
elements and I must have had a brain fart.
You can, of course, always use `Function.prototype.apply` as a
I have been puzzling over this problem for a while. In short; if you
have a a href inside the div - if you drag the div by anywhere that
is affected by the a tag it will trigger the link when the mouse
button is released.
I think other people have been having this problem from a quick search
of
Im siding with freshteapot here, you've probably got an infinate loop.
On Jan 20, 5:25 pm, Matt guitarroman...@gmail.com wrote:
Hmm... that file's a Google file so there's nothing I can do with it,
plus you'd expect it to be working... hmm. I monitored the CPU usage,
it shoots to 100% right
So, I have a simple bit of code that asks a user to confirm that they
want to change the existing value of a text field:
code
...
Event.observe(this._form['txtFld'], 'change',
this.txtFldChanged.bindAsEventListener(this), false);
this._txtFld = this._form['txtFld'].value;
...
function
17 matches
Mail list logo