[Proto-Scripty] Re: Do somthing only after two Ajax calls return results

2010-11-22 Thread T.J. Crowder
I have two calls run asyncronously Two - is an example - they may be N-calls :) I'd recommend avoiding that unless the async calls are to *different* servers, and if you do two at once, certainly never do more than two at once. Run just a single async request at a time, two if you absolutely

[Proto-Scripty] Re: How to create math manipulatives

2010-11-22 Thread ColinFine
ain't working means nothing. What happens? What do you expect to happen? Also... I've never heard of onforminput (I'm not familiar with HTML5) but I think it's premature to be using HTML5 facilities unless you know which browsers your users will be using. In any case, it is at least being

RE: [Proto-Scripty] Do somthing only after two Ajax calls return results

2010-11-22 Thread Brian Marquis
var watcher = { watching: false, start: function() { watching = true; Ajax.Responders.register({ onComplete: function() { if ( watching Ajax.activeRequestCount == 0 ) { finalize(); } } }); stop: function() { watching =

RE: [Proto-Scripty] Re: How to create math manipulatives

2010-11-22 Thread Brian Marquis
You can use Form.Observer to watch for changes to any values in a form. This assumes you have assigned the name attribute to each of your form fields. Without that, the getValue calls will return nothing. See http://www.prototypejs.org/api/timedObserver/form-observer for more details.

RE: [Proto-Scripty] Do somthing only after two Ajax calls return results

2010-11-22 Thread Brian Marquis
Forgot to unregister the responder. See revised watcher: var watcher = { start: function() { Ajax.Responders.register(responder); }, stop: function() { Ajax.Responders.unregister(responder); }, responder: { onComplete: function() { if (

[Proto-Scripty] Ajax.Updater HTML Entities

2010-11-22 Thread pjsb
Hello, I use Prototype 1.6 in conjunction with Smarty 3. I habe also a MySql DB with several columns that contains chars like or others that can be encoded with the php function: htmlentities I do not want to do a htmlentities before DB insert. The DB should contain no entitites just real text!

[Proto-Scripty] Re: Do somthing only after two Ajax calls return results

2010-11-22 Thread buda
Thanks! This is what I need On 22 ноя, 12:15, T.J. Crowder t...@crowdersoftware.com wrote: I have two calls run asyncronously Two - is an example - they may be N-calls :) I'd recommend avoiding that unless the async calls are to *different* servers, and if you do two at once, certainly

[Proto-Scripty] Re: Do somthing only after two Ajax calls return results

2010-11-22 Thread buda
This is not sutable because inparallel maybe run othes async calls which I dont need wait to complete On 22 ноя, 18:04, Brian Marquis br...@quotepro.com wrote: Forgot to unregister the responder. See revised watcher: var watcher = {   start: function() {    

[Proto-Scripty] Re: Extending a DOM-Object

2010-11-22 Thread Luke
Thank you Mr Crowder, that was quite informative. Still I'm a little unsure how to proceed. If I got this right, it is common sense now that extending the DOM is the wrong thing to do. One of the main reasons is the possibility of name-conflicts. So I thought I might extend Objects with a

[Proto-Scripty] Re: Extending a DOM-Object

2010-11-22 Thread JoJo
Why is the Element::store() not listed in the documentation??? http://www.prototypejs.org/api/element . Thanks for pointing out this feature. I've been stupidly creating my own data structures to further describe DOM elements. Now I don't have to do that. On Nov 22, 12:31 pm, Luke

Re: [Proto-Scripty] Firefox height:100% bug w/ prototype fix

2010-11-22 Thread Dave Kibble
I suggest that you insert a doctype and then run it through a validator until you get no errors or warning and then analyse what you are left with if you still have the problem. On 15 November 2010 19:26, Scott counterstre...@gmail.com wrote: So I've been working on a project the involves a