[Proto-Scripty] Re: order matters? cannot get handle to div (null)

2009-01-22 Thread T.J. Crowder
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]

[Proto-Scripty] Re: Element is null

2009-01-22 Thread n8cshaw
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

[Proto-Scripty] Re: help with autocompleter

2009-01-22 Thread eulerss
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

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread disccomp
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';}

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread disccomp
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,

[Proto-Scripty] Re: Scriptaculous problem with option field

2009-01-22 Thread Walter Lee Davis
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

[Proto-Scripty] Re: What's crashing this page in IE6?

2009-01-22 Thread disccomp
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

[Proto-Scripty] Having trouble with .without().

2009-01-22 Thread Richard Quadling
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,

[Proto-Scripty] Event.observe: listen for form submit cancelled

2009-01-22 Thread disccomp
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

[Proto-Scripty] Re: Having trouble with .without().

2009-01-22 Thread Matt Foster
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

[Proto-Scripty] Re: help with autocompleter

2009-01-22 Thread eulerss
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

[Proto-Scripty] Re: Having trouble with .without().

2009-01-22 Thread Richard Quadling
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

[Proto-Scripty] Re: order matters? cannot get handle to div (null)

2009-01-22 Thread theG
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

[Proto-Scripty] Re: Having trouble with .without().

2009-01-22 Thread kangax
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

[Proto-Scripty] Drag and drop inside a sortable triggers link.

2009-01-22 Thread mafoo
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

[Proto-Scripty] Re: What's crashing this page in IE6?

2009-01-22 Thread mafoo
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

[Proto-Scripty] Change Event Not Firing On Text Field in IE

2009-01-22 Thread J. Gregory Wright
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